Using the debugger
- Compiler output with debugging information
- Debug information includes: an instruction address, and the corresponding source code line numbers
After the completion of the instruction, the callback
LINUX use GDB
MAX use LLDB
Instructions for use
// 开始调试testlib程序
lldb testlib
// 在main函数的位置打断点
b main
dwarfdump testlib 可以直接查看debug信息