vscode-bash-debug不会调试相对路径

时间:2018-08-02 09:28:44

标签: bash debugging visual-studio-code

我在vscode-bash-debug方面遇到问题,也许这只是配置错误的问题,但是我不知道该怎么办,我将不胜感激。具有以下脚本:

#file1.sh
#!/bin/bash

echo 'hello'

. ./file2.sh

#file2.sh
#!/bin/bash

echo 'world'

调试器无法调试file2.sh。但是改变'。 ./file2.sh'到'/absolute/path/file2.sh'正常。

launch.json:

{
"version": "0.2.0",
"configurations": [
{
"type": "bashdb",
"request": "launch",
"name": "Bash-Debug (hardcoded script name)",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/file1.sh",
"showDebugOutput": true,
"trace": true,
"args": []
}
]
}

0 个答案:

没有答案