Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 691872d

Browse files
committed
added support to notify VS Code debugger that exception breakpoints are supported 159
1 parent 7444c2e commit 691872d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/client/debugger/Main.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ export class PythonDebugger extends DebugSession {
4949
}
5050
protected initializeRequest(response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments): void {
5151
response.body.supportsEvaluateForHovers = true;
52+
response.body.supportsConditionalBreakpoints = true;
53+
response.body.supportsEvaluateForHovers = false;
54+
response.body.supportsFunctionBreakpoints = false;
55+
response.body.exceptionBreakpointFilters = [
56+
{
57+
label: "All Exceptions",
58+
filter: "all"
59+
},
60+
{
61+
label: "Uncaught Exceptions",
62+
filter: "uncaught"
63+
}
64+
];
65+
5266
this.sendResponse(response);
5367
// now we are ready to accept breakpoints -> fire the initialized event to give UI a chance to set breakpoints
5468
this.sendEvent(new InitializedEvent());

0 commit comments

Comments
 (0)