[Resolvido] Execution of debuggers Finish in Few Seconds #967
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions