2017-08-14 16:11:57 +01:00
|
|
|
# lldb
|
|
|
|
|
|
|
|
> The LLVM Low-Level Debugger.
|
2022-02-14 11:21:43 +00:00
|
|
|
> More information: <https://lldb.llvm.org/man/lldb.html>.
|
2017-08-14 16:11:57 +01:00
|
|
|
|
|
|
|
- Debug an executable:
|
|
|
|
|
2022-02-14 11:21:43 +00:00
|
|
|
`lldb "{{executable}}"`
|
2017-08-14 16:11:57 +01:00
|
|
|
|
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
|
|
|
|
2022-02-14 11:21:43 +00:00
|
|
|
`lldb -w -n "{{process_name}}"`
|