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

Method resendThreadBreakpoints

src/debug/threads.ts:146–152  ·  view source on GitHub ↗
(thread: ThreadInfo)

Source from the content-addressed store, hash-verified

144
145 // Just resends existing breakpoints for a single thread.
146 public async resendThreadBreakpoints(thread: ThreadInfo): Promise<void> {
147 const promises = [];
148 for (const uri of Object.keys(this.bps)) {
149 promises.push(thread.setBreakpoints(this.logger, uri, this.bps[uri]));
150 }
151 await Promise.all(promises);
152 }
153
154 public setBreakpoints(uri: string, breakpoints: DebugProtocol.SourceBreakpoint[]): Promise<any[]> {
155 // Remember these bps for when new threads start.

Callers 2

registerThreadMethod · 0.95
handlePauseEventFunction · 0.80

Calls 1

setBreakpointsMethod · 0.45

Tested by

no test coverage detected