Debug with LLDB
integrated in VSCode - CodeLLDB
Debug Action
F5 - Continue / Pause
F10 - Step Over
F11 - Step Into
see also
- GDB Vs LLDB debuggers
- Scripting Bridge API - The SB APIs constitute the stable C++ API that lldb presents to external clients, and which get processed by SWIG to produce the Python bindings to lldb.
VSCode
- CodeLLDB User’s Manual - how to use this extension.
- Debugging in VS Code - if you are new to VSCode debugging.
Troubleshooting
Extension can conflict with other, and make debugging unavailable: disabling all extension & reloading selectively can solve the issue.
So far compatible extension are
- Code Runner - runs selected code snippets per click or keyboard shortcut.
- CodeLLDB
Issue remains
LLDB launch config
- Debug a C++ project in VS Code - launch syntax is different for each plugin.
Example of lldb plugin, invoking python script on conditional break, to have a custom visualisation of program state.
How run build task automatically before debugging in Visual Studio Code?
Written on September 26, 2022, Last update on June 27, 2024
debug-c++
vscode
gdb