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
{{ message }}
Repository navigation
Stop Debugging in a "noDebug" session doesn't kill subprocesses #125
kenmillar253 I moved this issue from python extension repo to the debugger repo. This issue should be looked at by the debugger first.
Oh! I misunderstood your meaning, thanks!
Hi Pavel Minaev (@int19h) , I have check this link #3.
Then install debugpy-1.0.0b3, ptvsd-5.0.0a12 and pydevd-1.9.0
The child process is still not auto-kill.
As you mentioned, how can I set launch.json to perform its own cleanup? Which args?
kenmillar253 don't install debugpy, ptvsd, or pydevd. This does not matter, since you are using launch configuration, the python extension will pick the debugger for you. Follow the instructions here to get the right debugger: #59
Karthik Nadig (@karthiknadig) I have install this dev vsix now.
And when this parameter --noreload is added, there will be 2 processes, all child processes can be closed. But when comment it, there will be 3 processes, only two of them were killed.
Mystery solved - the reason why I couldn't repro is because I didn't notice that you were using Ctrl+F5 (i.e. running without debugging).
The problem is that when we're not debugging, we're also not able to detect subprocesses. So when you stop the no-debug session, we kill the parent Django process, but not the child process that it had spawned.
We'll need to add some special cleanup to the launcher to kill the entire process tree in this scenario.
changed the title [-]vscode didn't close all django processes when comment "--noreload"[/-][+]Stop Debugging doesn't kill subprocesses[/+]on Aug 6, 2020
Activity
kenmillar253 commentedon Mar 10, 2020
Sorry, I posted the wrong place
karthiknadig commentedon Mar 10, 2020
kenmillar253 I moved this issue from python extension repo to the debugger repo. This issue should be looked at by the debugger first.
kenmillar253 commentedon Mar 10, 2020
int19h commentedon Mar 10, 2020
This is probably #3
kenmillar253 commentedon Mar 11, 2020
Hi Pavel Minaev (@int19h) , I have check this link #3.
Then install debugpy-1.0.0b3, ptvsd-5.0.0a12 and pydevd-1.9.0
The child process is still not auto-kill.
As you mentioned, how can I set launch.json to perform its own cleanup? Which args?
karthiknadig commentedon Mar 11, 2020
kenmillar253 don't install
debugpy,ptvsd, orpydevd. This does not matter, since you are usinglaunchconfiguration, the python extension will pick the debugger for you. Follow the instructions here to get the right debugger:#59
kenmillar253 commentedon Mar 11, 2020
Karthik Nadig (@karthiknadig) I have install this dev vsix now.
And when this parameter --noreload is added, there will be 2 processes, all child processes can be closed. But when comment it, there will be 3 processes, only two of them were killed.
kenmillar253 commentedon Mar 11, 2020
int19h commentedon Mar 11, 2020
If you do
import ptvsd; print(ptvsd.__version__)at the beginning of your code, what does it print?kenmillar253 commentedon Mar 11, 2020
Pavel Minaev (@int19h) It print 5.0.0a12
There is one child process not closed with its parent pid become 1

int19h commentedon Mar 24, 2020
Mystery solved - the reason why I couldn't repro is because I didn't notice that you were using Ctrl+F5 (i.e. running without debugging).
The problem is that when we're not debugging, we're also not able to detect subprocesses. So when you stop the no-debug session, we kill the parent Django process, but not the child process that it had spawned.
We'll need to add some special cleanup to the launcher to kill the entire process tree in this scenario.
[-]vscode didn't close all django processes when comment "--noreload"[/-][+]Stop Debugging doesn't kill subprocesses[/+][-]Stop Debugging doesn't kill subprocesses[/-][+]Stop Debugging in a "noDebug" session doesn't kill subprocesses [/+]Fix microsoft#125: Stop Debugging in a "noDebug" session doesn't kill…
Fix microsoft#125: Stop Debugging in a "noDebug" session doesn't kill…
Fix microsoft#125: Stop Debugging in a "noDebug" session doesn't kill…
Fix microsoft#125: Stop Debugging in a "noDebug" session doesn't kill…