MCPcopy Index your code
hub / github.com/WebFreak001/code-debug / setFunctionBreakPointsRequest

Method setFunctionBreakPointsRequest

src/mibase.ts:210–228  ·  view source on GitHub ↗
(response: DebugProtocol.SetFunctionBreakpointsResponse, args: DebugProtocol.SetFunctionBreakpointsArguments)

Source from the content-addressed store, hash-verified

208 }
209
210 protected setFunctionBreakPointsRequest(response: DebugProtocol.SetFunctionBreakpointsResponse, args: DebugProtocol.SetFunctionBreakpointsArguments): void {
211 const all = [];
212 args.breakpoints.forEach(brk => {
213 all.push(this.miDebugger.addBreakPoint({ raw: brk.name, condition: brk.condition, countCondition: brk.hitCondition }));
214 });
215 Promise.all(all).then(brkpoints => {
216 const finalBrks = [];
217 brkpoints.forEach(brkp => {
218 if (brkp[0])
219 finalBrks.push({ line: brkp[1].line });
220 });
221 response.body = {
222 breakpoints: finalBrks
223 };
224 this.sendResponse(response);
225 }, msg => {
226 this.sendErrorResponse(response, 10, msg.toString());
227 });
228 }
229
230 protected setBreakPointsRequest(response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments): void {
231 let path = args.source.path;

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.80
addBreakPointMethod · 0.65

Tested by

no test coverage detected