Commit d4831adb authored by Kevin Modzelewski's avatar Kevin Modzelewski

Print a full stacktrace in _printStacktrace

parent bb053bf4
......@@ -1003,7 +1003,14 @@ void _printStacktrace() {
recursive = true;
Box* file = PySys_GetObject("stderr");
PyTracebackObject* tb = NULL;
PyTraceBack_Here_Tb((struct _frame*)getFrame(0), &tb);
int i = 0;
while (true) {
auto frame = getFrame(i);
if (!frame)
break;
PyTraceBack_Here_Tb((struct _frame*)frame, &tb);
i++;
}
PyTraceBack_Print((Box*)tb, file);
recursive = false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment