Skip to content

Commit

Permalink
Debugging to err this time
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaresale committed Jul 31, 2024
1 parent 625f471 commit 8bc4a28
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/dk/brics/automaton/AutomatonCoverage.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ private VisitationInfo evaluateString(String input, boolean fullMatch) {
try {
nextStateOpt = this.transitionTable.step(stateCursor, transitionCharacter);
} catch (NoSuchElementException noElement) {
System.out.println("context:");
System.out.printf("string: '%s'%n", input);
System.out.printf("transitionCharacter: '%c'%n", transitionCharacter);
System.out.printf("currentPos: %d%n", currentPos);
System.out.printf("current state: %d%n", stateCursor);
System.out.println("DOT REP:");
System.out.println(transitionTable.toDot());
System.err.println("context:");
System.err.printf("string: '%s'%n", input);
System.err.printf("transitionCharacter: '%c'%n", transitionCharacter);
System.err.printf("currentPos: %d%n", currentPos);
System.err.printf("current state: %d%n", stateCursor);
System.err.println("DOT REP:");
System.err.println(transitionTable.toDot());
throw noElement;
}

Expand Down

0 comments on commit 8bc4a28

Please sign in to comment.