MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / doSetBreakpoint

Method doSetBreakpoint

tools/xsbug-log/xsbug-machine.js:280–295  ·  view source on GitHub ↗
(path, line, options)

Source from the content-addressed store, hash-verified

278 this.output.write(this.encoder.encode(string));
279 }
280 doSetBreakpoint(path, line, options) {
281 if (options && (options.condition || options.hitCount || options.trace)) {
282 let string = `\r\n<set-breakpoint path="${path}" line="${line}" id="@1">`;
283 if (options.condition)
284 string += `<breakpoint-condition path="${options.condition}"/>`;
285 if (options.hitCount)
286 string += `<breakpoint-hit-count path="${options.hitCount}"/>`;
287 if (options.trace)
288 string += `<breakpoint-trace path="${options.trace}"/>`;
289 string += `</set-breakpoint>\r\n`;
290 this.output.write(this.encoder.encode(string));
291 }
292 else {
293 this.doCommand(`set-breakpoint path="${path}" line="${line}" id="@0"`);
294 }
295 }
296 doSelect(value) {
297 this.doCommand(`select id="${value}"`);
298 }

Callers 9

cmdUntilMethod · 0.80
resendBreakpointMethod · 0.80
cmdBreakMethod · 0.80
cmdDeleteMethod · 0.80
cmdClearMethod · 0.80
cmdSetMethod · 0.80
onTouchEndedMethod · 0.80
valueFunction · 0.80
DebugBehavior.jsFile · 0.80

Calls 3

doCommandMethod · 0.95
writeMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected