You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (& distribution if applicable, e.g. Anaconda): 3.10 CPython
Using VS Code or Visual Studio: VS Code
Actual behavior
Debugger never starts and shows "timeout" error window.
In the terminal output you can see that the debugger command has been "pasted"/send to the terminal but the terminal was not ready yet. Hence, the command is discarded.
Its very similar to the issue described here: microsoft/vscode-js-debug#1642
Expected behavior
Debugger waits for terminal to finish and then sends the command to the terminal.
Steps to reproduce:
add a slow command to shell startup, e.g. "sleep 120" to ~/.zshrc or ~/.bashrc
start any debug session with debugpy
debugger will timeout
Background:
I have a zshrc setup that includes some startup scripts which usually take ~0.5-3 seconds. I've never found a satisfying workaround for this and many of the suggested solutions in the Issues in this repo never worked for me.
Environment data
Actual behavior
Debugger never starts and shows "timeout" error window.
In the terminal output you can see that the debugger command has been "pasted"/send to the terminal but the terminal was not ready yet. Hence, the command is discarded.
Its very similar to the issue described here: microsoft/vscode-js-debug#1642
Expected behavior
Debugger waits for terminal to finish and then sends the command to the terminal.
Steps to reproduce:
Background:
I have a zshrc setup that includes some startup scripts which usually take ~0.5-3 seconds. I've never found a satisfying workaround for this and many of the suggested solutions in the Issues in this repo never worked for me.
Current Workaround:
Currently, I am using a setting which works well enough for me
Here is the link to the vscode docs: https://code.visualstudio.com/docs/terminal/profiles#_configuring-the-taskdebug-profile
and here is the setting for me:
However, I wish this extension/debugger would support the same solution as microsoft/vscode-js-debug#1642.
The text was updated successfully, but these errors were encountered: