Debugger(Env env) { this.env = env; this.msgNodes = new ObjectStructures.MessageNodes(); this.alwaysHaltBreakpoint = new Breakpoint(BreakpointLocation.ANY, SuspendAnchor.BEFORE, false, null); this.alwaysHaltBreakpoint.setEnabled(true); }
Debugger(Env env) { this.env = env; this.msgNodes = new ObjectStructures.MessageNodes(); this.alwaysHaltBreakpoint = new Breakpoint(BreakpointLocation.ANY, SuspendAnchor.BEFORE); this.alwaysHaltBreakpoint.setEnabled(true); }
/** * @return a new breakpoint instance of {@link Kind#EXCEPTION EXCEPTION} kind. * * @since 1.0 */ public Breakpoint build() { if (sourceElements == null) { sourceElements = new SourceElement[]{SourceElement.STATEMENT}; } BreakpointLocation location = BreakpointLocation.create(sourceElements, suspensionFilter); BreakpointExceptionFilter efilter = new BreakpointExceptionFilter(caught, uncaught); return new Breakpoint(location, SuspendAnchor.AFTER, false, efilter, null); } }
/** * @return a new breakpoint instance * * @since 0.17 */ public Breakpoint build() { if (sourceElements == null) { sourceElements = new SourceElement[]{SourceElement.STATEMENT}; } BreakpointLocation location; if (sourceSection != null) { location = new BreakpointLocation(key, sourceElements, sourceSection); } else { location = new BreakpointLocation(key, sourceElements, line, column); } Breakpoint breakpoint = new Breakpoint(location, anchor, oneShot, resolveListener); breakpoint.setIgnoreCount(ignoreCount); return breakpoint; }
/** * @return a new breakpoint instance of {@link Kind#SOURCE_LOCATION SOURCE_LOCATION} kind. * * @since 0.17 */ public Breakpoint build() { if (sourceElements == null) { sourceElements = new SourceElement[]{SourceElement.STATEMENT}; } BreakpointLocation location; if (sourceSection != null) { location = BreakpointLocation.create(key, sourceElements, sourceSection); } else { location = BreakpointLocation.create(key, sourceElements, line, column); } Breakpoint breakpoint = new Breakpoint(location, anchor, oneShot, null, resolveListener); breakpoint.setIgnoreCount(ignoreCount); return breakpoint; }