Fix setting of line breakpoints
The problem was simply that I was sending the wrong key for the file path. Sigh. Also update the ms debugger and fix a traceback.
This commit is contained in:
parent
c4aefc110c
commit
4e3abde86d
3 changed files with 7 additions and 3 deletions
|
|
@ -12,13 +12,15 @@
|
||||||
"target": "support/test/cpp/simple_c_program/test",
|
"target": "support/test/cpp/simple_c_program/test",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": ".",
|
"cwd": ".",
|
||||||
"lldbmipath": "/Users/ben/.vscode/extensions/ms-vscode.cpptools-0.17.1/debugAdapters/lldb/bin/lldb-mi"
|
"lldbmipath": "/Users/ben/.vscode/extensions/ms-vscode.cpptools-0.17.3/debugAdapters/lldb/bin/lldb-mi",
|
||||||
|
"trace": true,
|
||||||
|
"logFilePath": "/Users/ben/.vimspector.protocol.log"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"simple_c_progra - ms Launch": {
|
"simple_c_progra - ms Launch": {
|
||||||
"adapter": {
|
"adapter": {
|
||||||
"name": "cppdbg",
|
"name": "cppdbg",
|
||||||
"command": [ "/Users/ben/.vscode/extensions/ms-vscode.cpptools-0.17.1/debugAdapters/OpenDebugAD7" ]
|
"command": [ "/Users/ben/.vscode/extensions/ms-vscode.cpptools-0.17.3/debugAdapters/OpenDebugAD7" ]
|
||||||
},
|
},
|
||||||
"configuration": {
|
"configuration": {
|
||||||
"name": "ms Launch",
|
"name": "ms Launch",
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@ class DebugSession( object ):
|
||||||
'arguments': {
|
'arguments': {
|
||||||
'source': {
|
'source': {
|
||||||
'name': os.path.basename( file_name ),
|
'name': os.path.basename( file_name ),
|
||||||
'file': file_name,
|
'path': file_name,
|
||||||
},
|
},
|
||||||
'breakpoints': breakpoints,
|
'breakpoints': breakpoints,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -104,5 +104,7 @@ def SelectFromList( prompt, options ):
|
||||||
if selection < 0 or selection >= len( options ):
|
if selection < 0 or selection >= len( options ):
|
||||||
return None
|
return None
|
||||||
return options[ selection ]
|
return options[ selection ]
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
return None
|
||||||
finally:
|
finally:
|
||||||
vim.eval( 'inputrestore()' )
|
vim.eval( 'inputrestore()' )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue