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:
Ben Jackson 2020-10-10 15:32:50 +01:00
commit 16f22b396f
3 changed files with 72 additions and 12 deletions

View file

@ -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"
}
}
}