Skip to content

Commit 4a22c7e

Browse files
committed
Add a bit more info to the faulthandler traceback
1 parent cc149d8 commit 4a22c7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Python/traceback.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,11 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
965965
unsigned int depth = 0;
966966
while (1) {
967967
if (MAX_FRAME_DEPTH <= depth) {
968-
PUTS(fd, " ...\n");
968+
if (MAX_FRAME_DEPTH < depth) {
969+
PUTS(fd, "plus ");
970+
_Py_DumpDecimal(fd, depth);
971+
PUTS(fd, "frames\n");
972+
}
969973
break;
970974
}
971975
dump_frame(fd, frame);

0 commit comments

Comments
 (0)