python 2.3a1 pdb broken? or is it a feature?

Jane Austine janeaustine50 at hotmail.com
Thu Jan 9 12:52:08 EST 2003


I'm running python 2.3a1 on a Win32 machine.

pdb's behaviour seems to have been changed from 2.2*.

"user_call" method is added, and it's called automatically
for every function/method call when I set a breakpoint somewhere
else and "continue".

For example:

<foobar.py>
------------------------
def a():
    print "a..."
    b()
def b():
    print "b..."
    c()
def c():
    print "c..."

-------------------------
>>> pdb.run("a()")
...
(Pdb) b foobar:2
Breakpoint 1 at foobar.py:2
(Pdb) c
--Call--
> c:\...\foobar.py(1)a()
-> def a():
(Pdb) cont
> c:\...\foobar.py(2)a()
-> print "a..."
(Pdb) continue
a...
--Call--
> c:\...\foobar.py(4)b()
-> def b():
(Pdb) 

I desparately want to Continue.

Jane




More information about the Python-list mailing list