(scriptid, loc, opt_condition)
| 278 | } |
| 279 | |
| 280 | setBreakPointAtLocation(scriptid, loc, opt_condition) { |
| 281 | const params = { location : |
| 282 | { scriptId : scriptid.toString(), |
| 283 | lineNumber : loc.line, |
| 284 | columnNumber : loc.column, |
| 285 | }, |
| 286 | condition : opt_condition, |
| 287 | }; |
| 288 | |
| 289 | const {msgid, msg} = this.createMessage("Debugger.setBreakpoint", params); |
| 290 | this.sendMessage(msg); |
| 291 | |
| 292 | const reply = this.takeReplyChecked(msgid); |
| 293 | const result = reply.result; |
| 294 | assertTrue(result !== undefined); |
| 295 | const breakid = result.breakpointId; |
| 296 | assertTrue(breakid !== undefined); |
| 297 | |
| 298 | const breakpoint = { id : result.breakpointId } |
| 299 | |
| 300 | this.breakpoints.add(breakpoint); |
| 301 | return breakpoint; |
| 302 | } |
| 303 | |
| 304 | execStatePrepareStep(action) { |
| 305 | switch(action) { |
no test coverage detected