[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)
Terry J. Reedy
report at bugs.python.org
Fri Sep 4 20:19:06 CEST 2015
Terry J. Reedy added the comment:
Simple fix attached. I copied the exit code from this part of the 'while True:' loop.
try:
pdb._runscript(mainpyfile)
if pdb._user_requested_quit:
break
print("The program finished and will be restarted")
I am not sure if the conditional is still needed there.
Xavier, if you have a better patch, please upload it.
----------
keywords: +patch
Added file: http://bugs.python.org/file40358/pdbloopfix.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16180>
_______________________________________
More information about the Python-bugs-list
mailing list