debugging

Jeff jam at quark.emich.edu
Sun May 28 09:48:12 EDT 2000


On Sun, May 28, 2000 at 02:40:52AM -0400, Reza Habib wrote:
> Hello.  I'm new to python and am having some trouble debugging my program.
> I'm running python 1.52 under windows nt 4 sp6.  I use the python command
> line shell to import my script file, the pdb file, and then start the
> debugger: pdb.run('myfile.test()').  This starts the debugger, however, the
> list command only prints EOF.  Also, I can't set breakpoints by giving line
> numbers (since it doesn't look like the file was loaded).  However, if I use
> the next command, it will correctly step through my code.  Is there
> something I need to do to get the list command to work so that I know where
> in the code I'm debugging and also to get break points to work.  Thanks in
> advance.
> 
> Reza
> 

Greetings,

There is extensive information available regarding the 'pdb' module in the
documentation that may be of some assistance:
http://www.python.org/doc/current/lib/module-pdb.html

Hope that helps.

Regards,
J
-- 
|| visit gfd <http://quark.emich.edu/>
|| psa member -- <http://www.python.org/psa/> 




More information about the Python-list mailing list