Erlang shell debug debugging

Source: Internet
Author: User

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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.