Skip to content

Commit

Permalink
User Uncaught Exceptions always shown. Fixes #724
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Sep 24, 2021
1 parent 02f3792 commit 0a3fa3f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/debugpy/adapter/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,12 @@ def initialize_request(self, request):
exception_breakpoint_filters = [
{"filter": "raised", "label": "Raised Exceptions", "default": False},
{"filter": "uncaught", "label": "Uncaught Exceptions", "default": True},
{
"filter": "userUnhandled",
"label": "User Uncaught Exceptions",
"default": True,
},
]
if int(os.getenv("DEBUGPY_EXCEPTION_FILTER_USER_UNHANDLED", "0")) != 0:
exception_breakpoint_filters += [
{
"filter": "userUnhandled",
"label": "User Uncaught Exceptions",
"default": True,
},
]

return {
"supportsCompletionsRequest": True,
Expand Down

0 comments on commit 0a3fa3f

Please sign in to comment.