Open dseynhae opened 2 years ago
For the script I'm debugging right now, I can just disable my initialization. In my .bashrc
, I return immediately if the Bash shell is invoked by the VS Code debugging environment:
# Don't run initialization when running in VS Code Debugger
if env | grep -q VSCODE_HANDLES; then
return 1
fi
I would prefer to be able to increase the "timeout" in my launch.json
configuration though...
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: v0.3.9
Output of following commands (on windows, execute them in Command Prompt or PowerShell):
Debug output
There is not output, the error window just pops up after 5 seconds. Your
launch.json
may looks like:Details
Debugger doesn't run:
I am pretty sure it is an issue with the timeout not being long enough (my bash shell takes about 5 seconds to start up):
tail -f
this heartbeat. When I start the debugger, the heartbeat shows that we go through the full initialization. But before we reach the end, the error message pops up..bashrc
to a sleep command. 4 seconds and below consistently gets the debugger to work; 5 seconds and above fails, and the error dialog comes up after exactly 5 seconds.Note: Python used to have the same problem. They resolved it by making the timeout configurable in the
launch.json
configuration.