diff --git a/Doc/library/faulthandler.rst b/Doc/library/faulthandler.rst index 07a7489941442b..eceafa7fa7c361 100644 --- a/Doc/library/faulthandler.rst +++ b/Doc/library/faulthandler.rst @@ -52,6 +52,8 @@ Dumping the traceback Dump the tracebacks of all threads into *file*. If *all_threads* is ``False``, dump only the current thread. + See also :func:`traceback.print_tb` which can be used to print a traceback object. + .. versionchanged:: 3.5 Added support for passing file descriptor to this function. @@ -179,3 +181,7 @@ handler: File "", line 1 in Segmentation fault +.. seealso:: + + Module :mod:`pdb` + Interactive source code debugger for Python programs. diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 383c3adcf289d5..0f2a3950016889 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -545,6 +545,14 @@ can be overridden by the local file. Print the return value for the last return of a function. +.. seealso:: + + Module :mod:`faulthandler` + Used to dump Python tracebacks explicitly, on a fault, after a timeout, or on a user signal. + + Module :mod:`pdb` + Interactive source code debugger for Python programs. + .. rubric:: Footnotes .. [1] Whether a frame is considered to originate in a certain module