(response: DebugProtocol.SetFunctionBreakpointsResponse, args: DebugProtocol.SetFunctionBreakpointsArguments)
| 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; |
nothing calls this directly
no test coverage detected