-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SystemExit while debugging unit test method #3201
Comments
Did you have |
No, it opens as I am starting debuging |
Upstream issue: microsoft/ptvsd#1268 (was microsoft/ptvsd#997). |
I'm experiencing exactly same issue as butterfly-pn |
This is happening because the test itself is raising an exception right? (at least that's what I'm experiencing running a Once this is fixed, will the debugger stop at the right place on "uncaught exceptions" within test code? |
@syagev there's a deeper layer usage of |
I have an "issue" in that debugging a test that completes successfully opens the Python extension's |
@madig same issue and it should be fixed in ptvsd master, so hopefully this will be resolved in the next release. |
Prescribed solution:
debugConfig.rules = [
{ path: '<fully qualified path>pythonFiles', include: false }
]; See here for contract details microsoft/ptvsd#997 (comment) |
FYI, the fix was merged into PTVSD yesterday morning. @karthiknadig, we're good to go, right? |
Yes. The fix is in master. |
@DonJayamanne, shouldn't we also remove all references to DONT_DEBUG in the various debug adapter scripts? |
Yes agreed. |
Validated |
…ecause the vscode-python extension is currently broken w.r.t. this. See microsoft/vscode-python#3201 for more; waiting for the next version of the extension to ship until I can use it again
Environment data
Actual behavior
When I run
Debug unit test method...
and choosing the test to debug it opens testlauncher.py and shows this message:Expected behavior
Start debugging 😄
Steps to reproduce:
Python: Debug unit test method...
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: