Can pdb be set to break on warnings?

LorcanM lm401 at cam.ac.uk
Wed Oct 11 10:38:46 EDT 2006


Fredrik Lundh wrote:
> "LorcanM" wrote:
>
> >>      python -m pdb -Werror myprogram.py
> >
> > 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
>
> sorry, pilot cut and paste error.  try:
>
>     python -Werror -m pdb myprogram.py
>
> (-m script must be the last option before the script arguments, for pretty
> obvious reasons).
> 
> </F>


Thanks for that - that does the trick,


 Lorcan.




More information about the Python-list mailing list