Skip to content

sys.exit(0) does not break by default, but sys.exit() does #489

Closed
@nedsociety

Description

@nedsociety

Environment data

  • debugpy version: 1.2.0
  • OS and version: Win10 18363.1198
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.0
  • Using VS Code or Visual Studio: vscode 1.51.1, Python extension v2020.11.371526539

Description

This code triggers breakpoint even if the "Raised Exceptions" option is turned off:

import sys
sys.exit()

image

This seems inconsistent. If I specify the exit code like sys.exit(0) explicitly then it ignores SystemExit as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions