mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add Breakpoint.bpformat(), which returns the info usually printed by bpprint(). Necessary for major refactoring of pdb output handling.
This commit is contained in:
parent
6cccb865d1
commit
d2fd4cae8e
2 changed files with 24 additions and 11 deletions
|
|
@ -50,9 +50,10 @@ The :mod:`bdb` module also defines two classes:
|
|||
Mark the breakpoint as disabled.
|
||||
|
||||
|
||||
.. method:: bpprint(out=None)
|
||||
.. method:: bpformat()
|
||||
|
||||
Print all the information about the breakpoint:
|
||||
Return a string with all the information about the breakpoint, nicely
|
||||
formatted:
|
||||
|
||||
* The breakpoint number.
|
||||
* If it is temporary or not.
|
||||
|
|
@ -61,6 +62,13 @@ The :mod:`bdb` module also defines two classes:
|
|||
* If it must be ignored the next N times.
|
||||
* The breakpoint hit count.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. method:: bpprint(out=None)
|
||||
|
||||
Print the output of :meth:`bpformat` to the file *out*, or if it is
|
||||
``None``, to standard output.
|
||||
|
||||
|
||||
.. class:: Bdb(skip=None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue