Reprinted: http://langzhe.iteye.com/blog/671762
Prerequisites: the Erl file must be compiled using the debug_info option. Otherwise, the invalid beam file or no abstract code will appear:
Error
Compilation Method: Make: All ([debug_info]). |
C (test. erl, debug_info ).
Basic debugging method: <br>
Im/0: Open the debugger <br>
I/1
: Add the file to the debugger. <br>
Ni: usage of multiple nodes <br>
N/1
: Opposite to I/1 <br>
Nn/1: opposite to NI/1 <br>
Interrepted/0: list all modules to be debugged <br>
File/1: displays the source file. <br>
Break/2: Add a breakpoint <br>
Delete_break/2 delete a breakpoint <br>
Break_in/3: Add a breakpoint to a specific function <br>
Del_break_in/3: delete a breakpoint in a specific function <br>
No_break/0: delete all breakpoints <br>
No_break/1: Delete all breakpoints of a module <br>
Disable_break/2: Disable the breakpoint of a module <br>
Enable_break/2: Restore the breakpoint of a module <br>
Action_at_break/1: sets the breakpoint status. Enable does not work in the experiment. <br>
All_breaks/0: displays the status of all breakpoints. <br>
All_breaks/1: displays the status of all specified breakpoints. <br>
Snapshot/0: Play back debugging process information <br>