MCPcopy Create free account
hub / github.com/Snapchat/Valdi / updateCustomBreakpoint

Method updateCustomBreakpoint

valdi/vscode_debugger/src/adapter/threads.ts:801–808  ·  view source on GitHub ↗
(id: CustomBreakpointId, enabled: boolean)

Source from the content-addressed store, hash-verified

799 }
800
801 async updateCustomBreakpoint(id: CustomBreakpointId, enabled: boolean): Promise<void> {
802 if (!this._delegate.supportsCustomBreakpoints()) return;
803 const breakpoint = customBreakpoints().get(id);
804 if (!breakpoint) return;
805 // Do not fail for custom breakpoints, to account for
806 // future changes in cdp vs stale breakpoints saved in the workspace.
807 await breakpoint.apply(this._cdp, enabled);
808 }
809
810 _createPausedDetails(event: Cdp.Debugger.PausedEvent): IPausedDetails {
811 // When hitting breakpoint in compiled source, we ignore source maps during the stepping

Callers 3

createThreadMethod · 0.80

Calls 4

customBreakpointsFunction · 0.90
getMethod · 0.65
applyMethod · 0.65

Tested by

no test coverage detected