How to show the current line number with pdb.set_trace()

Miki miki.tebeka at gmail.com
Sun May 23 17:30:13 EDT 2010


Hello,

> After starting pdb.set_trace(), python doens't show line number. Could
> you let me know how to print the number by default so that I know
> where the current line is?
When you get the PDB prompt, just type "l". It'll show some code with
an error
on the current line.

You can also type "?" for help.

HTH,
--
Miki



More information about the Python-list mailing list