You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8399a4e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: v4-cokapi/backends/java/java_jail/cp/traceprinter/JSONTracingThread.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public class JSONTracingThread extends Thread {
44
44
45
45
privateJDI2JSONjdi2json;
46
46
47
-
staticintMAX_STEPS = 256;
47
+
staticintMAX_STEPS = 1000; // 2016-05-01: modified by pgbovine to up from 256 to 1000
48
48
49
49
staticdoubleMAX_WALLTIME_SECONDS = 15; // modified by pgbovine
50
50
@@ -118,7 +118,7 @@ public void run() {
118
118
// System.out.println(currentTimeMillis());
119
119
if (System.currentTimeMillis() > MAX_WALLTIME_SECONDS * 1000 + InMemory.startTime) {
120
120
output.add(Json.createObjectBuilder()
121
-
.add("exception_msg", "<exceeded max visualizer time limit>")
121
+
.add("exception_msg", "Stopped after running for " + String.valueOf(MAX_WALLTIME_SECONDS) + " seconds. Please shorten your code,\nsince Python Tutor is not designed to handle long-running code.")
.add("exception_msg", "<exceeded max visualizer stack size>")
236
+
.add("exception_msg", "Stopped after the stack exceeded " + String.valueOf(MAX_STACK_SIZE) + " frames.\nPlease shorten your code.")
237
237
.add("event", "instruction_limit_reached"));
238
238
quit = true;
239
239
}
240
240
if (steps == MAX_STEPS) {
241
241
output.add(Json.createObjectBuilder()
242
-
.add("exception_msg", "<exceeded max visualizer step limit>")
242
+
.add("exception_msg", "Stopped after running " + String.valueOf(MAX_STEPS) + " steps. Please shorten your code,\nsince Python Tutor is not designed to handle long-running code.")
0 commit comments