breakpoint(): print(*args, **kwargs) before entering pdb
![](https://secure.gravatar.com/avatar/99f6049d76b24e6b2fefd26f0c3485ac.jpg?s=120&d=mm&r=g)
I played around with a newer Python build, but when using the new `breakpoint` builtin, I missed my weapon of choice: dirty print-debugging. I suggest we combine forces and make the default `sys.breakpointhook` forward *args and **kwargs to print before entering pdb. - Carl Bordum Hansen
![](https://secure.gravatar.com/avatar/05cc0c09b08e1f56627366aed454f829.jpg?s=120&d=mm&r=g)
On Fri, Mar 2, 2018 at 12:00 PM, Carl Bordum Hansen <carl@bordum.dk> wrote:
I played around with a newer Python build, but when using the new `breakpoint` builtin, I missed my weapon of choice: dirty print-debugging.
I suggest we combine forces and make the default `sys.breakpointhook` forward *args and **kwargs to print before entering pdb.
You can do this for yourself by adding the following to sitecustomize.py or similar: import sys def printingbreakpointhook(*args, **kwargs): print(args, kwargs) return sys.__breakpointhook__() sys.breakpointhook = printingbreakpointhook -- Zach
participants (2)
-
Carl Bordum Hansen
-
Zachary Ware