{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3530","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3530/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3530/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3530/events","html_url":"https://github.com/Microsoft/vscode-python/issues/3530","id":386603700,"node_id":"MDU6SXNzdWUzODY2MDM3MDA=","number":3530,"title":"Debugger breaks on sys.exit(0)","user":{"login":"PhyscoKillerMonkey","id":6674785,"node_id":"MDQ6VXNlcjY2NzQ3ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/6674785?v=4","gravatar_id":"","url":"https://api.github.com/users/PhyscoKillerMonkey","html_url":"https://github.com/PhyscoKillerMonkey","followers_url":"https://api.github.com/users/PhyscoKillerMonkey/followers","following_url":"https://api.github.com/users/PhyscoKillerMonkey/following{/other_user}","gists_url":"https://api.github.com/users/PhyscoKillerMonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/PhyscoKillerMonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhyscoKillerMonkey/subscriptions","organizations_url":"https://api.github.com/users/PhyscoKillerMonkey/orgs","repos_url":"https://api.github.com/users/PhyscoKillerMonkey/repos","events_url":"https://api.github.com/users/PhyscoKillerMonkey/events{/privacy}","received_events_url":"https://api.github.com/users/PhyscoKillerMonkey/received_events","type":"User","site_admin":false},"labels":[{"id":717126847,"node_id":"MDU6TGFiZWw3MTcxMjY4NDc=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/feature-debugging","name":"feature-debugging","color":"006b75","default":false},{"id":724043695,"node_id":"MDU6TGFiZWw3MjQwNDM2OTU=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20decision","name":"needs decision","color":"fbca04","default":false},{"id":716013201,"node_id":"MDU6TGFiZWw3MTYwMTMyMDE=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/type-enhancement","name":"type-enhancement","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-02T21:45:17Z","updated_at":"2018-12-03T21:40:16Z","closed_at":null,"author_association":"NONE","body":"<!-- \r\nDo you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. \r\n\r\nUnable to install a linter or formatter? 'No installers available'? \r\nWindows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows\r\nLinux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/\r\n\r\nPython configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites\r\n\r\nOtherwise **please** fill in the requested details below. \"XXX\" markers should not be present in the final bug report.\r\n\r\nIf you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.29.1\r\n- Extension version (available under the Extensions sidebar): 2018.11.0\r\n- OS and version: Windows 10 1803\r\n- Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.1\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv \r\n- Relevant/affected Python packages and their versions: N/A\r\n\r\n## Actual behavior\r\n\r\nThe debugger breaks on an uncaught exception on the following:\r\n\r\n```python\r\nimport sys\r\nsys.exit(0)\r\n```\r\n\r\n## Expected  behavior\r\n\r\nThe program should exit without an exception.\r\n\r\n## Steps to reproduce:\r\n1. Debug the above code with \"Breakpoints: Uncaught exceptions\" checked.\r\n\r\nhttps://github.com/Microsoft/PTVS/issues/4713 related?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/443880533","html_url":"https://github.com/Microsoft/vscode-python/issues/3530#issuecomment-443880533","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/3530","id":443880533,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzg4MDUzMw==","user":{"login":"brettcannon","id":54418,"node_id":"MDQ6VXNlcjU0NDE4","avatar_url":"https://avatars0.githubusercontent.com/u/54418?v=4","gravatar_id":"","url":"https://api.github.com/users/brettcannon","html_url":"https://github.com/brettcannon","followers_url":"https://api.github.com/users/brettcannon/followers","following_url":"https://api.github.com/users/brettcannon/following{/other_user}","gists_url":"https://api.github.com/users/brettcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettcannon/subscriptions","organizations_url":"https://api.github.com/users/brettcannon/orgs","repos_url":"https://api.github.com/users/brettcannon/repos","events_url":"https://api.github.com/users/brettcannon/events{/privacy}","received_events_url":"https://api.github.com/users/brettcannon/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T21:40:16Z","updated_at":"2018-12-03T21:40:16Z","author_association":"MEMBER","body":"The problem is that `sys.exit()` works by raising the `SystemExit` exception, so this is expected behaviour. I'll consider this a feature request to have an option to ignore `SystemExit`."}}
{"actor":{"display_login":"brettcannon"}}