C程序编译时,加上 -g 选项,然后运行命令进入调试:
lldb [program] [argv]..C程序编译时,加上 -g 选项,然后运行命令进入调试:
lldb [program] [argv]..Set a breakpoint in file test.c at line 12:
b test.c:12List all breakpoints:
br lDelete a breakpoint:
br del 1Run to breakpoint, Show the arguments and local variables for the current frame:
fr vShow the local variables for the current frame:
fr v -aShow the contents of local variable "bar".
p barEvaluating a generalized expression in the current frame:
print (int) printf ("Print nine: %d.", 4 + 5)
Show the arguments that will be or were passed to the program when run: