[issue24957] python -m pdb error.py: stuck in unexitable infinite prompt loop

2015-09-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> cannot quit pdb when there is a syntax error in the debuggee (must kill it) type: -> behavior ___ Python tracker

[issue24957] python -m pdb error.py: stuck in unexitable infinite prompt loop

2015-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 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 q