-
Notifications
You must be signed in to change notification settings - Fork 68
Failure to spawn ptvsd.launcher is not propagated to the client #2082
Comments
The error message in the terminal is misleading. What actually happened is that you had "tre" typed at the command prompt in the terminal before debugging started. When it did start, it tried to use the same terminal to start your app, and command line got mangled as a result. The debugger is then complaining that it couldn't communicate with the app that it expects to be there. Unfortunately, there's no API we can use to ensure that the terminal has a "clean" command prompt when launching the app, or even to detect that it was the cause of the failure. This is also a problem that's broader than just the debugger - it applies to all tools that have to start something in the terminal. This is fundamentally the same problem as microsoft/vscode-python#8907. I'm not entirely sure why VSCode thinks the debug session is still running here, but you should be able to stop it by using Debug -> Stop Debugging, or the same command on the floating debug toolbar. |
Hello, int19h. Thank you for reply I intentionally typed "tre" before command because it was a way to trigger this situation. Your solution... you should be able to stop it by using Debug -> Stop Debugging, or the same command on the floating debug toolbar. It keeps stealing my time a lot. Isn't it the issue I should submit to VSCode?? |
Hm, this is weird. And Debug -> Stop Debugging is disabled? |
Yes, I have two dev computers. They share this issue. To trigger this situation,
|
We don't propagate failures from "runInTerminal" request correctly. |
Failure to spawn ptvsd.launcher is not propagated to the client Propagate errors from listener sockets, Popen(), and "runInTerminal" request back to the client.
Failure to spawn ptvsd.launcher is not propagated to the client Propagate errors from listener sockets, Popen(), and "runInTerminal" request back to the client.
It was the only reason I had to use Pycharm :) |
This is my terminal log.
“There is already a debug configuration ”Python: Current File“ running.”
This error keeps me from debugging.
I guess vscode python extension thinks my debugger is running though it is not because of some errors.
How can I let my debugger know it is not running?
Or Is there any way to launch several debuggers like pycharm?
The text was updated successfully, but these errors were encountered: