Skip to content

Commit 34933c8

Browse files
committed
Add config for lldb-dap testing; doesn't seem to work
1 parent 81e1694 commit 34933c8

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
@@ -1573,7 +1573,7 @@ Currently tested with the following debug adapters.
15731573
## C, C++, Rust, etc.
15741574

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

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+
"lldbdap": {
151+
"shell": "xcrun -f lldb-dap"
152+
}
153+
},
154+
"command": [
155+
"${lldbdap}"
156+
],
157+
"name": "lldb"
158+
},
132159
"CodeLLDB-localbuild": {
133160
"extends": "CodeLLDB",
134161
"command": [

0 commit comments

Comments
 (0)