1
我想通過vscode上的bashdb調試bash shell,但似乎需要設置launch.json。如何在vscode上調試bash shell時設置launch.json
我該怎麼做。
它似乎編輯scriptPath ...?
我想通過vscode上的bashdb調試bash shell,但似乎需要設置launch.json。如何在vscode上調試bash shell時設置launch.json
我該怎麼做。
它似乎編輯scriptPath ...?
要運行/調試當前打開的腳本IDE
替換爲${command.AskForScriptName}
${file}
在launch.json
:
{
"version": "0.2.0",
"configurations": [
{
"name": "Bash-Debug (type in script name)",
"type": "bashdb",
"request": "launch",
"scriptPath": "${file}",
"commandLineArguments": "",
"windows": {
"bashPath": "C:\\Windows\\sysnative\\bash.exe"
},
"linux": {
"bashPath": "bash"
},
"osx": {
"bashPath": "bash"
}
}
]
}
你也可以硬編碼一個特定的文件:
的Linux:
"scriptPath": "${workspaceRoot}/test.sh"
點
的Windows:
"scriptPath": "${workspaceRoot}\\test.sh"