[New-bugs-announce] [issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

Xavier de Gaye report at bugs.python.org
Mon Aug 4 22:44:21 CEST 2014


New submission from Xavier de Gaye:

Pdb sets a handler for the SIGINT signal (which is sent when the user presses Ctrl-C on the console) when you give a continue command.
'continue' is not the only pdb command that may be interrupted, all the commands that resume the execution of the program (i.e. the 'do_xxx' Pdb methods that return 1), except for the ones that terminate pdb, should also set the SIGINT signal handler. These are the 'step', 'next', 'until' and 'return' commands.
For example, a 'next' command issued at the invocation of a function when the function is doing a long processing and the user wishes to break into pdb again with Ctrl-C within this function.

It is probably better to fix this issue after issue 20766 is fixed.

----------
components: Library (Lib)
messages: 224772
nosy: xdegaye
priority: normal
severity: normal
status: open
title: allow to break into pdb with Ctrl-C for all the commands that resume execution
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22135>
_______________________________________


More information about the New-bugs-announce mailing list