[Resolvido] Execution of debuggers Finish in Few Seconds #967
LeandroCGMS
started this conversation in
General
Replies: 2 comments 4 replies
|
Some random thoughts from looking at the code. You're using gunicorn, which generally implies gevent. For that to work with debugpy, it needs to be made aware of it from the moment it is loaded - and it must get loaded before gevent. In a "launch" scenario, you can just say |
1 reply
|
You cannot use "env" for "attach" - it only applies to "launch", where the debugger actually has the opportunity to change the environment before the app starts running. With "attach", you start the app yourself via gunicorn, so you'll need to change the environment through the same facility - presumably, in |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've posted on 3 forums, over a month ago, but no one has shown to know the reason for the title problem. When I run the debugger through the VS Code client, it works normally, but only for a few seconds. I've already tweaked all my code due to changes from version 3 to version 4 of Django; I already changed the timeout to much longer; I already changed debugpy to ptvsd and went back to debugpy among other attempts.

https://forum.djangoproject.com/t/debugpy-with-docker-and-visual-code-ending-automatically/14345
All reactions