Update the test/example config file with vars
This commit is contained in:
parent
79b25c0860
commit
08eed4ff15
2 changed files with 22 additions and 18 deletions
|
|
@ -4,12 +4,12 @@
|
||||||
"name": "lldb-mi",
|
"name": "lldb-mi",
|
||||||
"command": [
|
"command": [
|
||||||
"node",
|
"node",
|
||||||
"/Users/ben/.vscode/extensions/webfreak.debug-0.22.0/out/src/lldb.js"
|
"$HOME/.vscode/extensions/webfreak.debug-0.22.0/out/src/lldb.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"cppdbg": {
|
"cppdbg": {
|
||||||
"name": "cppdbg",
|
"name": "cppdbg",
|
||||||
"command": [ "/Users/ben/.vscode/extensions/ms-vscode.cpptools-0.17.3/debugAdapters/OpenDebugAD7" ],
|
"command": [ "$HOME/.vscode/extensions/ms-vscode.cpptools-0.17.4/debugAdapters/OpenDebugAD7" ],
|
||||||
"attach": {
|
"attach": {
|
||||||
"pidProperty": "processId",
|
"pidProperty": "processId",
|
||||||
"pidSelect": "ask"
|
"pidSelect": "ask"
|
||||||
|
|
@ -19,14 +19,14 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"command": [
|
"command": [
|
||||||
"node",
|
"node",
|
||||||
"/Users/ben/.vscode/extensions/ms-python.python-2018.4.0/out/client/debugger/Main.js"
|
"$HOME/.vscode/extensions/ms-python.python-2018.4.0/out/client/debugger/Main.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"bashdb": {
|
"bashdb": {
|
||||||
"name": "bashdb",
|
"name": "bashdb",
|
||||||
"command": [
|
"command": [
|
||||||
"node",
|
"node",
|
||||||
"/Users/ben/.vscode/extensions/rogalmic.bash-debug-0.2.0/out/bashDebug.js"
|
"$HOME/.vscode/extensions/rogalmic.bash-debug-0.2.0/out/bashDebug.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"lldb": {
|
"lldb": {
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
"lldb",
|
"lldb",
|
||||||
"-b",
|
"-b",
|
||||||
"-O",
|
"-O",
|
||||||
"command script import '/Users/ben/.vscode/extensions/vadimcn.vscode-lldb-0.8.7/adapter'",
|
"command script import '$HOME/.vscode/extensions/vadimcn.vscode-lldb-0.8.7/adapter'",
|
||||||
"-O",
|
"-O",
|
||||||
"script adapter.main.run_stdio_session()"
|
"script adapter.main.run_stdio_session()"
|
||||||
]
|
]
|
||||||
|
|
@ -49,9 +49,9 @@
|
||||||
"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.3/debugAdapters/lldb/bin/lldb-mi",
|
"lldbmipath": "$HOME/.vscode/extensions/ms-vscode.cpptools-0.17.4/debugAdapters/lldb/bin/lldb-mi",
|
||||||
"trace": true,
|
"trace": true,
|
||||||
"logFilePath": "/Users/ben/.vimspector.protocol.log"
|
"logFilePath": "$HOME/.vimspector.protocol.log"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"simple_c_progra - ms Launch": {
|
"simple_c_progra - ms Launch": {
|
||||||
|
|
@ -60,9 +60,9 @@
|
||||||
"name": "ms Launch",
|
"name": "ms Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "/Users/ben/.vim/bundle/vimspector/support/test/cpp/simple_c_program/test",
|
"program": "${workspaceRoot}/support/test/cpp/simple_c_program/test",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "/Users/ben",
|
"cwd": "$HOME",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
"externalConsole": true,
|
"externalConsole": true,
|
||||||
"MIMode": "lldb"
|
"MIMode": "lldb"
|
||||||
|
|
@ -74,11 +74,11 @@
|
||||||
"name": "Python: Current File",
|
"name": "Python: Current File",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"cwd": "/Users/ben/.vim/bundle/vimspector/support/test/python/simple_python",
|
"cwd": "${workspaceRoot}/support/test/python/simple_python",
|
||||||
"stopOnEntry": true,
|
"stopOnEntry": true,
|
||||||
"console": "externalTerminal",
|
"console": "externalTerminal",
|
||||||
"debugOptions": [],
|
"debugOptions": [],
|
||||||
"program": "/Users/ben/.vim/bundle/vimspector/support/test/python/simple_python/main.py"
|
"program": "${workspaceRoot}/support/test/python/simple_python/main.py"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"simple_c_program - MS Attach": {
|
"simple_c_program - MS Attach": {
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
"name": "(lldb) Attach",
|
"name": "(lldb) Attach",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"program": "/Users/ben/.vim/bundle/vimspector/support/test/cpp/simple_c_program/test",
|
"program": "${workspaceRoot}/support/test/cpp/simple_c_program/test",
|
||||||
"MIMode": "lldb"
|
"MIMode": "lldb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -97,9 +97,9 @@
|
||||||
"type": "bashdb",
|
"type": "bashdb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Bash-Debug (simplest configuration)",
|
"name": "Bash-Debug (simplest configuration)",
|
||||||
"program": "/Users/ben/.vim/bundle/YouCompleteMe/install.sh",
|
"program": "$HOME/.vim/bundle/YouCompleteMe/install.sh",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "/Users/ben/.vim/bundle/YouCompleteMe",
|
"cwd": "$HOME/.vim/bundle/YouCompleteMe",
|
||||||
"pathBash": "bash",
|
"pathBash": "bash",
|
||||||
"pathBashdb": "bashdb",
|
"pathBashdb": "bashdb",
|
||||||
"pathCat": "cat",
|
"pathCat": "cat",
|
||||||
|
|
@ -115,9 +115,9 @@
|
||||||
"type": "lldb",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "LLDB: Launch",
|
"name": "LLDB: Launch",
|
||||||
"program": "/Users/ben/Development/vim/src/vim",
|
"program": "$HOME/Development/vim/src/vim",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "/Users/ben/Development/vim"
|
"cwd": "$HOME/Development/vim"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"racerd": {
|
"racerd": {
|
||||||
|
|
@ -126,13 +126,13 @@
|
||||||
"type": "lldb",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "LLDB: Launch",
|
"name": "LLDB: Launch",
|
||||||
"program": "/Users/ben/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/racerd/target/debug/racerd",
|
"program": "$HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/racerd/target/debug/racerd",
|
||||||
"args": [
|
"args": [
|
||||||
"serve",
|
"serve",
|
||||||
"--port=12345",
|
"--port=12345",
|
||||||
"--secret-file=secretfile"
|
"--secret-file=secretfile"
|
||||||
],
|
],
|
||||||
"cwd": "/Users/ben/.vim/bundle/YouCompleteMe/third_party/ycmd"
|
"cwd": "$HOME/.vim/bundle/YouCompleteMe/third_party/ycmd"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -165,6 +165,7 @@ class DebugSession( object ):
|
||||||
self._SetUpUI()
|
self._SetUpUI()
|
||||||
else:
|
else:
|
||||||
vim.current.tabpage = self._uiTab
|
vim.current.tabpage = self._uiTab
|
||||||
|
# FIXME: Encapsulation
|
||||||
self._stackTraceView._connection = self._connection
|
self._stackTraceView._connection = self._connection
|
||||||
self._variablesView._connection = self._connection
|
self._variablesView._connection = self._connection
|
||||||
|
|
||||||
|
|
@ -361,6 +362,9 @@ class DebugSession( object ):
|
||||||
vim.command( 'augroup END' )
|
vim.command( 'augroup END' )
|
||||||
|
|
||||||
def CloseDown( self ):
|
def CloseDown( self ):
|
||||||
|
# We have to use a dict because of python's scoping/assignment rules (state
|
||||||
|
# = False would touch a state variable in handler, not in the enclosing
|
||||||
|
# scope)
|
||||||
state = { 'done': False }
|
state = { 'done': False }
|
||||||
|
|
||||||
def handler( self ):
|
def handler( self ):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue