-
Notifications
You must be signed in to change notification settings - Fork 0
LLDB Tutorial
Rafael Pintar Alevato edited this page Aug 29, 2018
·
2 revisions
First Compile the C file with the flag -g on gcc or clang for debugging mode.
$ gcc -g my_c_file.c -o my_out_c_file
Then, on terminal, run:
$ lldb my_out_c_file
It will then enter in LLDB debugging mode for that file. It accepts the following commands:
- Run:
(lldb) r
Breakpoint (on line number n):
(lldb) b n
Continue:
(lldb) c
Step one line:
(lldb) s