I have been successful in running LLDB debugger from vscode on Linux, Mac and Windows with the following settings:
llvm-vs-code-extensions.lldb-dapvisual code extensionlldp-dapexecutable must be in your path. Check that exists usinglldb-dap --version. To install it on Windows runwinget install LLVM.LLVM, on Macbrew install llvm, on Linux use your distribution package manager to install llvm/lldb.- Create an entry for the “LLDB DAP Debugger” in
launch.jsonlike:{ "version": "0.2.0", "configurations": [ { "type": "lldb-dap", "request": "launch", "name": "Debug", "program": "${workspaceFolder}/zig-out/bin/<your program>", "args": [], "env": [], "cwd": "${workspaceFolder}" } ] } - In the vscode settings for the zig extension set
"zig.debugAdapter": "lldb-dap". This allows to debug main and tests using the arrows in your code.