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:
Ben Jackson 2018-05-26 18:49:23 +01:00
commit 4e3abde86d
3 changed files with 7 additions and 3 deletions

View file

@ -12,13 +12,15 @@
"target": "support/test/cpp/simple_c_program/test",
"args": [],
"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": {
"adapter": {
"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": {
"name": "ms Launch",

View file

@ -232,7 +232,7 @@ class DebugSession( object ):
'arguments': {
'source': {
'name': os.path.basename( file_name ),
'file': file_name,
'path': file_name,
},
'breakpoints': breakpoints,
},

View file

@ -104,5 +104,7 @@ def SelectFromList( prompt, options ):
if selection < 0 or selection >= len( options ):
return None
return options[ selection ]
except KeyboardInterrupt:
return None
finally:
vim.eval( 'inputrestore()' )