[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___ ___

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26c4db1a0aea by Terry Jan Reedy in branch '2.7': Issue #16180: Exit pdb if file has syntax error, instead of trapping user https://hg.python.org/cpython/rev/26c4db1a0aea New changeset 2d4aac2ab253 by Terry Jan Reedy in branch '3.4': Issue #16180: Ex

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Slightly better in that pdb exits in case of a syntax error instead of proposing to restart the program which does not make sense. A test case is included. -- Added file: http://bugs.python.org/file40372/pdb_syntax_error.patch

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-04 Thread Terry J. Reedy
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 restart

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2015-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reported again in #24957 Xavier, your link is out of date. -- nosy: +georg.brandl, terry.reedy stage: -> test needed versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 -Python 3.3 ___ Python tracker

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: See how this is fixed at http://code.google.com/p/pdb-clone/source/detail?r=0d4d905c6e0aa9c47611dbae514d3f7f53776dcb -- ___ Python tracker ___ _

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-11-19 Thread rurpy the second
rurpy the second added the comment: This continues to be a problem on Python-3.3.0 -- nosy: +rurpy2 versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-10-09 Thread Xavier de Gaye
New submission from Xavier de Gaye: $ tmp=`mktemp /tmp/foo.XX`; echo 'def foo: pass' > $tmp; python3 -m pdb $tmp; rm $tmp Traceback (most recent call last): File "/usr/local/lib/python3.2/pdb.py", line 1556, in main pdb._runscript(mainpyfile) File "/usr/local/lib/python3.2/pdb.py