From df759ec9dc6e8eebc00a5c87f514daf4dddb1e29 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 17 Jan 2020 15:26:52 +0000 Subject: [PATCH] Upgrade bashdb and add more useful defaults --- install_gadget.py | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/install_gadget.py b/install_gadget.py index 8cd802316..cb8fe3ef5 100755 --- a/install_gadget.py +++ b/install_gadget.py @@ -207,9 +207,37 @@ 'download/${version}/${file_name}', }, 'all': { - 'file_name': 'bash-debug-0.3.5.vsix', - 'version': 'v0.3.5', + 'file_name': 'bash-debug-0.3.6.vsix', + 'version': 'v0.3.6', 'checksum': '', + }, + 'do': lambda name, root: InstallBashDebug( name, root ), + 'adapters': { + "vscode-bash": { + "name": "bashdb", + "command": [ + "node", + "${gadgetDir}/vscode-bash-debug/out/bashDebug.js" + ], + "variables": { + "BASHDB_HOME": "${gadgetDir}/vscode-bash-debug/bashdb_dir" + }, + "configuration": { + "request": "launch", + "type": "bashdb", + "program": "${file}", + "args": [], + "env": {}, + "pathBash": "bash", + "pathBashdb": "${BASHDB_HOME}/bashdb", + "pathBashdbLib": "${BASHDB_HOME}", + "pathCat": "cat", + "pathMkfifo": "mkfifo", + "pathPkill": "pkill", + "cwd": "${workspaceRoot}", + "terminalKind": "integrated", + } + } } }, 'vscode-go': { @@ -318,6 +346,11 @@ def InstallCppTools( name, root ): MakeExtensionSymlink( name, root ) +def InstallBashDebug( name, root ): + MakeExecutable( os.path.join( root, 'extension', 'bashdb_dir', 'bashdb' ) ) + MakeExtensionSymlink( name, root ) + + def InstallTclProDebug( name, root ): configure = [ './configure' ]