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 xdegaye
Recipients georg.brandl, terry.reedy, xdegaye
Date 2014-07-19.10:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405766220.06.0.198292490781.issue21997@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-07-19 10:37:00xdegayesetrecipients: + xdegaye, georg.brandl, terry.reedy
2014-07-19 10:37:00xdegayesetmessageid: <1405766220.06.0.198292490781.issue21997@psf.upfronthosting.co.za>
2014-07-19 10:36:59xdegayelinkissue21997 messages
2014-07-19 10:36:59xdegayecreate