-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Debugging a multiprocessing app #80
Debugging a multiprocessing app #80
Comments
From @rangersb on January 26, 2017 19:19 Hey, I have a related Issue. |
From @isvoboda on February 2, 2017 21:25 Developer tools console with a new version of VS 1.9 and Python 0.5.7
|
From @zjjott on July 20, 2017 8:17 +1 multiprocess cause like:
and when I stop debugger ,vscode can't kill process group as it used to be |
please confirm you are using PTVSD package version 3.0.0 |
From @isvoboda on July 20, 2017 12:48 @DonJayamanne Actually, I have not been using ptvsd at all. I guess it is not a remote debug related problem? Nevertheless, I have installed ptvsd==3.0 and the problem remains for me. |
From @zjjott on July 21, 2017 2:46 @DonJayamanne I just install |
From @MattMorgis on July 25, 2017 13:48 +1 - when debugging Snorkel everything works fine, until I run it in parallel. It stops at my first breakpoint, but then freezes and spits out the same output @zjjott posted. I'm happy to help out in any way if you can point me in the right direction. |
From @phucnt1992 on October 18, 2017 3:59 I have same issue, I try to debug a |
From @egrgdam on October 30, 2017 15:17 having uwsgi + flask + ptvsd==3.0.0. Same issue. |
@egrgdam Sorry, no eta yet. Hopefully I'll have something within around two weeks. |
same issue |
+1 |
I have the same problem using threading.Thread()s. |
I have the same issue with gunicorn + flask |
Same issue with a Tornado application and basically everything that's behind/after a |
Upstream issue microsoft/ptvsd#57 |
Update to upstream issue microsoft/ptvsd#885 |
From @isvoboda on December 31, 2016 1:45
I have a problem debugging a multiprocess based app. A simple example is given, which, in the beginning, runs ok without any breakpoint. On the other hand, stepping to the line
val = self.que.get(block=True, timeout=None)
crashes the debugger, or just loses a focus and the process is no more attachable by VSCode.I am enclosing a log from debug console and both launches I have tried.
Environment data
VS Code version: 1.8.1
Python Extension version: 0.5.5
Python Version: 2.7.6
OS and version: XUbuntu 14.04.5
My launch.json
Your settings.json:
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)Actual behavior
Stepping the debug process leads to a crash of debugger or loss of process focus.
Expected behavior
Stepping through a program and printing 0.
Steps to reproduce:
Debug the provided code, ie step into the process (reader or writer), the debugger stops working and nothing happens. After that, try to run the debugger once more without stepping through the code. Following these steps I got the error posted above in the developer tools console.
Copied from original issue: DonJayamanne/pythonVSCode#614
The text was updated successfully, but these errors were encountered: