Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Setup CodeLLDB in Visual Studio Code

Nat! edited this page Oct 5, 2019 · 2 revisions

The codelldb extension uses mulle-lldb directly and not mulle-lldb-mi.

This requires mulle-lldb to be compiled with python.

Assume your executable is called test-vcode-extension. This is your launch.json, when building your project with mulle-sde craft --debug:

{
   "version": "0.2.0",
   "configurations": [
      {
         "type": "lldb",
         "request": "launch",
         "name": "Debug test-vscode-extension",
         "program": "build/Debug/test-vscode-extension",
         "cwd": "${workspaceRoot}",
         "preLaunchTask": "Debug"
      }
    ]
}

Add this to your workspace preferences: (File/Preferences/Settings)

"lldb.executable": "mulle-lldb"

Note doesn't seem to work well anymore. More success with this:

{
  // other settings ...
  "lldb.adapterType": "classic",
  // "lldb.executable": "mulle-lldb",
  "lldb.library": "/home/src/srcL/mulle-lldb-90/lib/liblldb.so"
}
Clone this wiki locally