我在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": []
}
]
}