MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / setExceptionBreakPointsRequest

Function setExceptionBreakPointsRequest

src/debug/dart_debug_impl.ts:575–594  ·  view source on GitHub ↗
(
		response: DebugProtocol.SetExceptionBreakpointsResponse,
		args: DebugProtocol.SetExceptionBreakpointsArguments,
	)

Source from the content-addressed store, hash-verified

573 }
574
575 protected async setExceptionBreakPointsRequest(
576 response: DebugProtocol.SetExceptionBreakpointsResponse,
577 args: DebugProtocol.SetExceptionBreakpointsArguments,
578 ): Promise<void> {
579 const filters: string[] = args.filters;
580
581 let mode: VmExceptionMode = "None";
582
583 // If we're running in noDebug mode, we'll always set None.
584 if (!this.noDebug) {
585 if (filters.includes("Unhandled"))
586 mode = "Unhandled";
587 if (filters.includes("All"))
588 mode = "All";
589 }
590
591 await this.threadManager.setExceptionPauseMode(mode);
592
593 this.sendResponse(response);
594 }
595
596 protected configurationDoneRequest(
597 response: DebugProtocol.ConfigurationDoneResponse,

Callers

nothing calls this directly

Calls 2

sendResponseMethod · 0.80
setExceptionPauseModeMethod · 0.45

Tested by

no test coverage detected