pdb will not continue
Tim Egbert
tegbert at xmission.xmission.com
Thu Mar 30 13:30:17 EST 2000
I'm new to the pbd module, but think I've got most of it working. The
problem I'm having, however, is that even though I can set break points, I
can't get pdb to 'continue' ('cont' or 'c') to the break point. All it
will do is advance one line. What am I doing wrong?
Tim
P.S. Here's my interactive session:
Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import mymodule
>>> import pdb
>>> mmod=mymodule.mymodule()
>>> pdb.runcall(mmod.mymethod,arg)
> mymodule.py(156)mymethod()
-> def mymethod(self,arg):
(Pdb) b 166
Breakpoint 1 at mymodule.py:166
(Pdb) l 163,167
163 ix=0
164 while 1:
165 if ix>=len(arr): break
166 B val=arr[ix]
167 nlen=ix+1
(Pdb) continue
> mymodule.py(158)mymethod()
-> words=string.split(textsegment)
(Pdb) l 156,158
156 def mymethod(self,arg):
157 # --- initialization
158 -> words=string.split(arg)
(Pdb)
More information about the Python-list
mailing list