tldr/pages/osx/lldb.md

17 lines
328 B
Markdown
Raw Normal View History

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
- Attach `lldb` to a running process with a given PID:
2017-08-14 16:11:57 +01:00
`lldb -p {{pid}}`
- 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}}"`