[issue21997] Pdb.set_trace debugging does not end correctly
Xavier de Gaye
report at bugs.python.org
Sun Jul 20 12:38:12 CEST 2014
Xavier de Gaye added the comment:
> # This returns to a '>>>' prompt,
At the above line in Terry test, the debugger is not terminated and on linux when I type <Ctl-D> at this point I get:
>>>
--Call--
> /home/xavier/etc/.pystartup(21)save_history()
-> def save_history(historyPath=historyPath):
(Pdb)
So this seems to be demonstrating the same problem as a).
The NameError exception (name 'run' is not defined) is caused by the execution of its def statement having been interrupted by the debugger with BdbQuit.
This issue could be kept open so as to include the "exec('do()', locals())" with the test cases when fixing the problem of Pdb termination.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21997>
_______________________________________
More information about the Python-bugs-list
mailing list