You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
I'm using the ptvsd_launcher.py to launch the debugger
I've created a simple python file with mixed indentation (using spaces and tabs)
When launching the debugger, the process falls over simply because the code is buggy.
However what's interesting is PTVSD has managed to connect and send and receive protocol messages, unfortunately it doesn't know anything about the errors.
Looking at the code, there doesn't seem to be any exception handling around the launching of a file. I could be mistaken.
I could ready stderr output from the process and display that when the process exits.
Though this isn't a clean approach, it isn't really possible today due to the noise printed out into stdout and stderr by pydevd.
The text was updated successfully, but these errors were encountered:
DonJayamanne
changed the title
Launching PTVSD fails and error messages ignored by VS Code Debugger
When launching PTVSD fails debugging fails silently in VS Code Debugger
Feb 10, 2018
DonJayamanne
changed the title
When launching PTVSD fails debugging fails silently in VS Code Debugger
When launching PTVSD fails, debugging stops silently in VS Code Debugger
Feb 10, 2018
stderr would be a dead end, since we don't control what the user code is printing out, even ignoring pydevd.
This should be reported similar to any other exception. I would have expected pydevd to handle it via the normal exception reporting channels, but we might need to special-case errors coming out of parsing. Either way, from VS and VSC perspective, they shouldn't need any special handling.
ptvsd_launcher.py
to launch the debuggerLooking at the code, there doesn't seem to be any exception handling around the launching of a file. I could be mistaken.
I could ready
stderr
output from the process and display that when the process exits.Though this isn't a clean approach, it isn't really possible today due to the noise printed out into stdout and stderr by
pydevd
.@karthiknadig How does PTVS handle this scenario?
The text was updated successfully, but these errors were encountered: