From baf6121065b4f299b79c6f40aff50b4dbda65d2c Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Thu, 2 Dec 2021 12:38:03 -0800 Subject: [PATCH] Add tooltips for exception breakpoint filters. (#790) --- src/debugpy/adapter/clients.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/debugpy/adapter/clients.py b/src/debugpy/adapter/clients.py index f0db1a87..c1e79f63 100644 --- a/src/debugpy/adapter/clients.py +++ b/src/debugpy/adapter/clients.py @@ -143,12 +143,23 @@ class Client(components.Component): self._initialize_request = request exception_breakpoint_filters = [ - {"filter": "raised", "label": "Raised Exceptions", "default": False}, - {"filter": "uncaught", "label": "Uncaught Exceptions", "default": True}, + { + "filter": "raised", + "label": "Raised Exceptions", + "default": False, + "description": "Break whenever any exception is raised.", + }, + { + "filter": "uncaught", + "label": "Uncaught Exceptions", + "default": True, + "description": "Break when the process is exiting due to unhandled exception.", + }, { "filter": "userUnhandled", "label": "User Uncaught Exceptions", "default": False, + "description": "Break when exception escapes into library code.", }, ]