This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients petr.viktorin
Date 2009-02-17.11:51:43
SpamBayes Score 3.74678e-08
Marked as misclassified No
Message-id <>
Consider this program:

import pdb


print ("At line 5")
print ("At line 6")
print ("At line 7")
print ("At line 8")
print ("At line 9")

When set_trace starts the debugger, I set a breakpoint at line 8. When I
do that, the continue command starts single-stepping instead of what it
usually does.
Also, the module will appear twice on the call stack (although pdb won't
show this).

Here is the pdb session:

$ python
> /home/petr/tmp/<module>()
-> print ("At line 5")
(Pdb) break 8
Breakpoint 1 at /home/petr/tmp/
(Pdb) continue
At line 5
> /home/petr/tmp/<module>()
-> print ("At line 6")
(Pdb) continue
At line 6
> /home/petr/tmp/<module>()
-> print ("At line 7")
(Pdb) where
> /home/petr/tmp/<module>()
-> print ("At line 7")
(Pdb) quit
Traceback (most recent call last):
  File "", line 7, in <module>
    print ("At line 7")
  File "", line 7, in <module>
    print ("At line 7")
  File "/usr/lib/python2.5/", line 48, in trace_dispatch
    return self.dispatch_line(frame)
  File "/usr/lib/python2.5/", line 67, in dispatch_line
    if self.quitting: raise BdbQuit
Date User Action Args
2009-02-17 11:51:45petr.viktorinsetrecipients: + petr.viktorin
2009-02-17 11:51:45petr.viktorinsetmessageid: <>
2009-02-17 11:51:44petr.viktorinlinkissue5294 messages
2009-02-17 11:51:43petr.viktorincreate