This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
Ending debug session does not terminate PTVSD process running in a terminal #58
Labels
Milestone
Currently termination of the PTVSD process is a responsibility of the VS Code debug adapter.
This works in scenarios where we're using the debug console (no-terminals involved).
However when debugging a Python program in an external terminal or the VS Code terminal, then stopping the debugger doesn't kill the PTVSD process. Though the program ends, the PTVSD process is still running, hence the terminal doesn't return to the prompt.
Solutions:
Unfortunately VS Code doesn't return the process id of the process (when we send a request to launch the program in a terminal).
This would work well with VS and VS Code.
Then VS Code could kill the process using this process id.
This feels like a hack, when 2 would be better.
The text was updated successfully, but these errors were encountered: