2017-08-14 16:11:57 +01:00
|
|
|
# lldb
|
|
|
|
|
|
|
|
> The LLVM Low-Level Debugger.
|
2021-10-11 06:08:25 +01:00
|
|
|
> More information: <https://lldb.llvm.org>.
|
2017-08-14 16:11:57 +01:00
|
|
|
|
|
|
|
- Debug an executable:
|
|
|
|
|
|
|
|
`lldb {{executable}}`
|
|
|
|
|
2017-09-05 00:01:28 +01:00
|
|
|
- Attach `lldb` to a running process with a given PID:
|
2017-08-14 16:11:57 +01:00
|
|
|
|
|
|
|
`lldb -p {{pid}}`
|
|
|
|
|
2017-09-05 00:01:28 +01:00
|
|
|
- Wait for a new process to launch with a given name, and attach to it:
|
2017-08-14 16:11:57 +01:00
|
|
|
|
|
|
|
`lldb -w -n {{process_name}}`
|