Can pdb be set to break on warnings?

Fredrik Lundh fredrik at pythonware.com
Wed Oct 11 05:38:10 EDT 2006


LorcanM wrote:

  > I use pdb under Linux to debug my Python code, as in:
> 
> python -m pdb myprogram.py
> 
> By default it does a postmortem of unhandled exceptions, is there a way
> to get it to break on warnings?

is

     python -m pdb -Werror myprogram.py

what you're looking for ?

</F>




More information about the Python-list mailing list