mirror of https://github.com/python/cpython.git
gh-128409: Document that pdb.post_mortem() accepts exceptions (#128410)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
802556abfa
commit
1b39b502d3
|
@ -179,13 +179,15 @@ slightly different way:
|
||||||
.. versionadded:: 3.14
|
.. versionadded:: 3.14
|
||||||
The *commands* argument.
|
The *commands* argument.
|
||||||
|
|
||||||
.. function:: post_mortem(traceback=None)
|
.. function:: post_mortem(t=None)
|
||||||
|
|
||||||
Enter post-mortem debugging of the given *traceback* object. If no
|
Enter post-mortem debugging of the given exception or
|
||||||
*traceback* is given, it uses the one of the exception that is currently
|
:ref:`traceback object <traceback-objects>`. If no value is given, it uses
|
||||||
being handled (an exception must be being handled if the default is to be
|
the exception that is currently being handled, or raises ``ValueError`` if
|
||||||
used).
|
there isn’t one.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.13
|
||||||
|
Support for exception objects was added.
|
||||||
|
|
||||||
.. function:: pm()
|
.. function:: pm()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue