vscode-bash-debug: Bash debugging does not start with Visual Studio Code 1.44.0
In addition to the details for issue, please provide us Executables information and Debug output unless you have confidence that they don’t help us.
Executables
Version of bash-debug: 0.3.7 Version of Visual Studio Code: 1.44.0-1 (on Arch Linux; latest Arch updates, kernel 5.6.4-arch1-1)
Output of following commands (on windows, execute them in Command Prompt or PowerShell):
where bash
# if `code` not found on macOS, follow the instructions in:
# https://code.visualstudio.com/docs/setup/mac
code --version
bash -c 'uname -a; for P in bash bashdb cat mkfifo pkill; do echo ---; which -a $P; command $P --version; done'
Debug output
Paste here outputs in DEBUG CONSOLE (ctrl+shift+D or command+shift+D) with "showDebugOutput": true and "trace": true in launch.json.
Your launch.json may looks like:
{
"version": "0.2.0",
"configurations": [
{
"type": "bashdb",
"request": "launch",
"name": "Bash Debug",
"program": "${workspaceFolder}/src/foo.sh",
"showDebugOutput": true,
"trace": true
}
]
}
Details
Bash debugging does not start with the latest Visual Studio Code 1.44.0. With many older Visual Studio Code versions debugging has worked as expected. Downgrading to the previous Visual Studio Code 1.43.2-2 helps, debugging works with that as expected.
See more details at https://github.com/microsoft/vscode/issues/94982.
They claim that the Bash Debug extension is the cause, but they haven’t so far given any details on the issue.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 21 (7 by maintainers)
Yep, just installed this on linux and i see similar behaviour (only for integrated terminal, external terminal works fine).
The issue is that the command contains semicolons “;” , and newest VsCode seems to escape them “\;” in integrated terminal.
This does not happen on Windows.
Looking for root cause: https://github.com/microsoft/vscode/compare/1.43.2...1.44.0
Found something in
prepareCommand()@src/vs/workbench/contrib/debug/node/terminals.ts:Related to: https://github.com/microsoft/vscode/issues/93166