Can pdb be set to break on warnings?
Fredrik Lundh
fredrik at pythonware.com
Wed Oct 11 06:38:55 EDT 2006
"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>
More information about the Python-list
mailing list