Can pdb be set to break on warnings?

LorcanM lm401 at cam.ac.uk
Wed Oct 11 06:31:44 EDT 2006


Fredrik Lundh wrote:
> 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>


It sounds like what I want, but it doesn't work for me. When I try the
above line of code, it replies:
Error: -Werror does not exist

I'm running Python 2.4.3

Thanks for the help,


 Lorcan.




More information about the Python-list mailing list