3.2. Starting a debugging session
Use LLDB to start an interactive debugging session. You can then set breakpoints, step through code, and inspect program state.
Procedure
Run LLDB on a program you want to debug:
$ lldb <binary_file>Replace
<binary_file>with the name of your compiled program.You have started your LLDB debugging session in interactive mode. Your command-line terminal now displays the default prompt (
lldb).To quit the debugging session and return to the shell prompt:
(lldb) quit