-
Notifications
You must be signed in to change notification settings - Fork 131
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
sys.exit(0) does not break by default, but sys.exit() does #489
Comments
In the launch JSON, add this and see if it helps:
|
Well it makes
|
Ah! I see. Sorry, I misunderstood the issue. |
It seems that the issue is that |
@fabioz @karthiknadig @nedsociety The behavior of debugpy is not in compliance with the specifications. Because the underlying issue is broader, I raised a separate ticket on the matter, which explains the problem and suggests a solution that should not only fix the issue you are having, but other issues as well. Unforatunately, it was closed and moved to a discussion. Please contribute, if you wish to see it fixed. |
Environment data
Description
This code triggers breakpoint even if the "Raised Exceptions" option is turned off:
This seems inconsistent. If I specify the exit code like
sys.exit(0)
explicitly then it ignores SystemExit as expected.The text was updated successfully, but these errors were encountered: