Fix breakpoint event
Few problems:
- we were passing a dict instead of a list of breakpoints
- if the breakpoint had a source which was {} we crashed
- we didn't support the 'removed' event
This commit is contained in:
parent
f6726de058
commit
16f22b396f
3 changed files with 72 additions and 12 deletions
39
tests/testdata/cpp/simple/.vimspector.json
vendored
39
tests/testdata/cpp/simple/.vimspector.json
vendored
|
|
@ -68,6 +68,45 @@
|
|||
"CALCULATED_STR", "${CALCULATED_STR}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"lldb-vscode": {
|
||||
"adapter": "lldb-vscode",
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/${fileBasenameNoExtension}",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"externalConsole": false,
|
||||
"MIMode": "lldb"
|
||||
}
|
||||
},
|
||||
"CodeLLDB": {
|
||||
"adapter": "CodeLLDB",
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/${fileBasenameNoExtension}",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"expressions": "native"
|
||||
}
|
||||
}
|
||||
},
|
||||
"adapters": {
|
||||
"lldb-vscode": {
|
||||
"variables": {
|
||||
"LLVM": {
|
||||
"shell": "brew --prefix llvm"
|
||||
}
|
||||
},
|
||||
"attach": {
|
||||
"pidProperty": "pid",
|
||||
"pidSelect": "ask"
|
||||
},
|
||||
"command": [
|
||||
"${LLVM}/bin/lldb-vscode"
|
||||
],
|
||||
"env": {
|
||||
"LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY": "YES"
|
||||
},
|
||||
"name": "lldb"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue