[docs] [issue35835] There is no mention of breakpoint() in the pdb documentation

Cheryl Sabella report at bugs.python.org
Sun Jan 27 08:51:29 EST 2019


Cheryl Sabella <cheryl.sabella at gmail.com> added the comment:

I agree with Karthikeyan.  If it's added to the pdb doc page, I think the existing text should stay as it is, but a 'New in 3.7' added after it.

Something like:

The typical usage to break into the debugger from a running program is to insert

import pdb; pdb.set_trace()

at the location you want to break into the debugger. You can then step through the code following this statement, and continue running without the debugger using the continue command.

New in version 3.7: The built-in :func:`breakpoint()`, when called with defaults, can be used instead of ``import pdb; pdb.set_trace()``.

----------
nosy: +cheryl.sabella

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35835>
_______________________________________


More information about the docs mailing list