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 terry.reedy
Recipients georg.brandl, shlomif, terry.reedy
Date 2015-09-04.17:29:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441387793.57.0.463073792238.issue24957@psf.upfronthosting.co.za>
In-reply-to
Content
Pdb says "Running 'cont' or 'step' will restart the program" but it seems to restart on any recognized command other than 'h' and traps everything else.  I verified behavior on Win7 with ordinary syntax error 'a = = 1' on installed 2.7.10 and 3.4.3.  Removed qualifiers from title.

Doc says
'''
python3 -m pdb myscript.py

When invoked as a script, pdb will automatically enter post-mortem debugging if the program being debugged exits abnormally. After post-mortem debugging (or after normal exit of the program), pdb will restart the program.'''

But not being able to exit could not have been the intention. Looking at the code.
History
Date User Action Args
2015-09-04 17:29:53terry.reedysetrecipients: + terry.reedy, georg.brandl, shlomif
2015-09-04 17:29:53terry.reedysetmessageid: <1441387793.57.0.463073792238.issue24957@psf.upfronthosting.co.za>
2015-09-04 17:29:53terry.reedylinkissue24957 messages
2015-09-04 17:29:52terry.reedycreate