[New-bugs-announce] [issue31389] Give pdb.set_trace() an optional `header` keyword argument

Barry A. Warsaw report at bugs.python.org
Thu Sep 7 18:30:47 EDT 2017


New submission from Barry A. Warsaw:

IPython has a neat little feature where the function that enters the debugger takes an optional `header` argument.  If given, it is a string that's printed to the console just before the debugger is entered.

https://github.com/ipython/ipython/blob/master/IPython/terminal/embed.py#L177
https://mail.python.org/pipermail/python-dev/2017-September/149256.html

I kind of realized this would be nice to have in pdb, and the code is easy so here's the tracking issue.

----------
assignee: barry
components: Library (Lib)
messages: 301643
nosy: barry
priority: normal
severity: normal
status: open
title: Give pdb.set_trace() an optional `header` keyword argument
versions: Python 3.7

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


More information about the New-bugs-announce mailing list