PDB question

Justin Shaw wyojustin at hotmail.com
Sat Jul 20 00:22:37 EDT 2002


> Does pdb list function only works with funtions defined on a seperate
modules?

Is seem like you can only list one line at a time when debugging a function
entered into the interpreter.  Use 'h' to list the valid pdb commands.
Basic usage is clear after about 5-10 minutes experimenting with the
commands.

> What does these mean (in pdb prompt) :
> <string>(1)?()

This is always the initial position, not sure exacactly what is is telling
you.

> <stdin>(1)foo()

This says that you are currently in function 'foo()' which came from
standard in which seem to always be at line 1.

In general the format is:
<file or stream>(line#)functionname()
-> sourceline (If applicable)


> TIA
Hope it helps
Justin





More information about the Python-list mailing list