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 <rep...@bugs.python.org>
<https://bugs.python.org/issue31389>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to