forked from inducer/pudb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up some more of the interrupt framework
This (partially) fixes inducer#42, and also improves work on inducer#31. Now, interrupting with Control-C works when the debugging is started with set_trace(). The SIGINT handler is enabled via the public function pudb.set_interrupt_handler. If you want to be able to enter PuDB from within your application, just call this function. By default, it uses SIGINT (i.e., Control-C), but you can change it to use a different signal if that one interferes. There is still one major issue, which is that when you break in the middle of an atomic operation, it goes to bdb. After pressing `n` several times you get to your code, though.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters