Skip to content

Commit a2031a4

Browse files
committed
Add config for lldb-dap testing; doesn't seem to work
1 parent cbbf83f commit a2031a4

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ Currently tested with the following debug adapters.
15721572
## C, C++, Rust, etc.
15731573

15741574
* [vscode-cpptools](https://github.com/Microsoft/vscode-cpptools)
1575-
* On macOS, I *strongly* recommend using [CodeLLDB](#rust) instead for C and C++
1575+
* I *strongly* recommend using [CodeLLDB](#rust) over cpptools for almost all
15761576
projects. It's really excellent, has fewer dependencies and doesn't open console
15771577
apps in another Terminal window.
15781578

tests/testdata/cpp/simple/.vimspector.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,22 @@
7676
"MIMode": "lldb"
7777
}
7878
},
79+
"lldb-dap": {
80+
"adapter": "lldb-dap",
81+
"configuration": {
82+
"request": "launch",
83+
"program": "${workspaceRoot}/${fileBasenameNoExtension}",
84+
"args": [
85+
"A", "eh",
86+
"B", "bee",
87+
"C", "Sea",
88+
"D", "Ceedy"
89+
],
90+
"stopOnEntry": true,
91+
"runInTerminal": true,
92+
"cwd": "${workspaceRoot}"
93+
}
94+
},
7995
"CodeLLDB": {
8096
"adapter": "CodeLLDB",
8197
// "adapter": {
@@ -129,6 +145,17 @@
129145
},
130146
"name": "lldb"
131147
},
148+
"lldb-dap": {
149+
"variables": {
150+
"LLVM": {
151+
"shell": "brew --prefix llvm"
152+
}
153+
},
154+
"command": [
155+
"${LLVM}/bin/lldb-dap"
156+
],
157+
"name": "lldb"
158+
},
132159
"CodeLLDB-localbuild": {
133160
"extends": "CodeLLDB",
134161
"command": [

0 commit comments

Comments
 (0)