// Method with multiple paths we can break on. publicstaticvoid doMultiPath(boolean bit) {
doNothing(); if (bit) {
System.out.println("\targument was true");
} else {
System.out.println("\targument was false");
}
doNothing();
}
publicstaticvoid notifyBreakpointReached(Thread thr, Executable e, long loc) {
System.out.println( "\tBreakpoint reached: " + e + " @ line=" + Breakpoint.locationToLine(e, loc));
}
publicstaticvoid run() throws Exception { // Set up breakpoints
Breakpoint.stopBreakpointWatch(Thread.currentThread());
Breakpoint.startBreakpointWatch(
Test994.class,
Test994.class.getDeclaredMethod( "notifyBreakpointReached", Thread.class, Executable.class, Long.TYPE), Thread.currentThread());
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.