From f55bea745ff2fda856b78b40727dc183c9d992ad Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Wed, 3 Jun 2020 14:34:08 -0300 Subject: [PATCH] Add userUnhandled to exceptionBreakpointFilters in pydevd / make default False. Fixes #275 --- .../pydevd/_pydevd_bundle/pydevd_process_net_command_json.py | 1 + src/debugpy/adapter/clients.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py index 3d553d80..3480df9e 100644 --- a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +++ b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py @@ -223,6 +223,7 @@ class PyDevJsonCommandProcessor(object): exceptionBreakpointFilters=[ {'filter': 'raised', 'label': 'Raised Exceptions', 'default': False}, {'filter': 'uncaught', 'label': 'Uncaught Exceptions', 'default': True}, + {"filter": "userUnhandled", "label": "User Uncaught Exceptions", "default": False}, ], # Not supported. diff --git a/src/debugpy/adapter/clients.py b/src/debugpy/adapter/clients.py index 86d3e4a7..43af558d 100644 --- a/src/debugpy/adapter/clients.py +++ b/src/debugpy/adapter/clients.py @@ -159,7 +159,7 @@ class Client(components.Component): "exceptionBreakpointFilters": [ {"filter": "raised", "label": "Raised Exceptions", "default": False}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": True}, - {"filter": "userUnhandled", "label": "User Uncaught Exceptions", "default": True}, + {"filter": "userUnhandled", "label": "User Uncaught Exceptions", "default": False}, ], }