N
newsposter
When I enter 'c' at the (Pdb) prompt it just goes to the next line, and
doesn't "continue" as it should.
Here's the sample program:
# epdb1.py -- experiment with the Python debugger, pdb
import pdb
a = "aaa"
pdb.set_trace()
b = "bbb"
c = "ccc"
final = a + b + c
print final
Here's the sample output:
S:\tmp>python epdb1.py
--Return--
(Pdb) n
(Pdb) l
1 # epdb1.py -- experiment with the Python debugger, pdb
2 import pdb
3 a = "aaa"
4 pdb.set_trace()
5 -> b = "bbb"
6 c = "ccc"
7 final = a + b + c
8 print final
[EOF]
(Pdb) c
(Pdb) c
(Pdb) c
(Pdb) c
aaabbbccc
--Return--
(Pdb) c
S:\tmp>
Any ideas on why the debugger doesn't just continue running the
program?
Thanks!
Chris
doesn't "continue" as it should.
Here's the sample program:
# epdb1.py -- experiment with the Python debugger, pdb
import pdb
a = "aaa"
pdb.set_trace()
b = "bbb"
c = "ccc"
final = a + b + c
print final
Here's the sample output:
S:\tmp>python epdb1.py
--Return--
-> Pdb().set_trace()c:\python21\lib\pdb.py(895)set_trace()->None
(Pdb) n
-> b = "bbb"S:\tmp\epdb1.py(5)?()
(Pdb) l
1 # epdb1.py -- experiment with the Python debugger, pdb
2 import pdb
3 a = "aaa"
4 pdb.set_trace()
5 -> b = "bbb"
6 c = "ccc"
7 final = a + b + c
8 print final
[EOF]
(Pdb) c
-> c = "ccc"S:\tmp\epdb1.py(6)?()
(Pdb) c
-> final = a + b + cS:\tmp\epdb1.py(7)?()
(Pdb) c
-> print finalS:\tmp\epdb1.py(8)?()
(Pdb) c
aaabbbccc
--Return--
-> print finalS:\tmp\epdb1.py(8)?()->None
(Pdb) c
S:\tmp>
Any ideas on why the debugger doesn't just continue running the
program?
Thanks!
Chris