-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subprocess always waits for client to attach #81
Comments
This is an interesting point! The current design does indeed force a wait on any subprocess attached in the same logical session. The reason for that is to treat breakpoints as if they were also a part of that single logical session, with processes working more or less like threads. Which is to say - if you have a breakpoint set on the very first line of code inside the child process about to be spawned (e.g. inside I think our problem here is that this doesn't really make sense when there are no active client sessions in the current multiproc logical session - i.e. subprocesses should only wait implicitly at spawn if the notification about them was successfully delivered to the client. |
Unblock subprocesses for which no notification could be sent to the client.
Unblock subprocesses for which no notification could be sent to the client.
Great, thanks! |
Environment data
Actual behavior
I run this script
with
python3 -m debugpy --listen localhost:5678 /tmp/test.py
.I can see
"x"
but no"y"
.Expected behavior
According to your README this should not wait for a client to attach, so the subprocess should immediately start running.
Steps to reproduce:
Run the above script as explained.
The text was updated successfully, but these errors were encountered: