MCPcopy Index your code
hub / github.com/nodejs/node / setBreakPointAtLocation

Method setBreakPointAtLocation

deps/v8/test/debugger/test-api.js:280–302  ·  view source on GitHub ↗
(scriptid, loc, opt_condition)

Source from the content-addressed store, hash-verified

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) {

Callers 1

setBreakPointMethod · 0.95

Calls 6

createMessageMethod · 0.95
sendMessageMethod · 0.95
takeReplyCheckedMethod · 0.95
addMethod · 0.65
assertTrueFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected