Debugging woes on python

Anthony Baxter anthony at interlink.com.au
Mon Oct 13 06:08:49 EDT 2003


>>> "Glenn Reed" wrote
> Prior to that I learn't Perl and used it for sometime.  What I miss with
> python is the lack of a straightforward command line debugger.  That is
> setting breakpoints and going step, step, step thru my code and examining
> variables as appropriate.  While I enjoyed Python's better syntax I found
> Python's debugger frustrating and basically found it unusable.  I could set
> breakpoints by using PythonWin but I couldn't step thru the code.  The worst
> thing was that I couldn't list the source code or see any visual recognition
> of stepping thru source code.   The debugger was Python's pdb module.  Is
> there anything better for python?  It didn't take me this long to get
> started with Perl's command line (non-GUI) debugger.

"import pdb ; pdb.set_trace()"

See also the module docs for pdb.

-- 
Anthony Baxter     <anthony at interlink.com.au>   
It's never too late to have a happy childhood.






More information about the Python-list mailing list