Message223463
Two issues here:
a) in IDLE, on a 'return' debug event in the main module, the step command does not end the debugging session.
b) in IDLE, BdbQuit is raised by the quit command when the debugger is started with pdb.set_trace().
I do not know IDLE, but a) seems closely related to issue 14743: "on terminating, Pdb debugs itself".
As for b) BdbQuit is also raised outside of IDLE (see also issue 16446: "pdb raises BdbQuit on 'quit' when started with set_trace"):
>>> def dodebug():
... import pdb; pdb.set_trace()
...
>>> dodebug()
--Return--
> <stdin>(2)dodebug()->None
(Pdb) quit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in dodebug
File "/usr/local/lib/python3.5/bdb.py", line 52, in trace_dispatch
return self.dispatch_return(frame, arg)
File "/usr/local/lib/python3.5/bdb.py", line 96, in dispatch_return
if self.quitting: raise BdbQuit
bdb.BdbQuit |
|
Date |
User |
Action |
Args |
2014-07-19 10:37:00 | xdegaye | set | recipients:
+ xdegaye, georg.brandl, terry.reedy |
2014-07-19 10:37:00 | xdegaye | set | messageid: <1405766220.06.0.198292490781.issue21997@psf.upfronthosting.co.za> |
2014-07-19 10:36:59 | xdegaye | link | issue21997 messages |
2014-07-19 10:36:59 | xdegaye | create | |
|