|
80 | 80 | Save sessions ({config.save_key}) or post them to pastebins ({config.pastebin_key})! Current pastebin helper: {config.pastebin_helper} |
81 | 81 | Reload all modules and rerun session ({config.reimport_key}) to test out changes to a module. |
82 | 82 | Toggle auto-reload mode ({config.toggle_file_watch_key}) to re-execute the current session when a module you've imported is modified. |
| 83 | +Toggle auto-debug mode ({config.debug_key}) to trigger a debugger whenever an exception is raised. |
83 | 84 |
|
84 | 85 | bpython -i your_script.py runs a file in interactive mode |
85 | 86 | bpython -t your_script.py pastes the contents of a file into the session |
@@ -881,12 +882,16 @@ def toggle_file_watch(self): |
881 | 882 | deftoggle_auto_debug(self): |
882 | 883 | ifdebuggerisNone: |
883 | 884 | self.status_bar.message( |
884 | | -_('No debugger, check your PYTHON_DEBUGGER value.\n')) |
| 885 | +_('No debugger, check your PYTHON_DEBUGGER value.')) |
885 | 886 | return |
886 | 887 | ifsys.excepthookisnotdebugger_hook: |
| 888 | +self.status_bar.message( |
| 889 | +_('Auto-debug activated')) |
887 | 890 | sys.excepthook=debugger_hook |
888 | 891 | else: |
889 | 892 | sys.excepthook=sys.__excepthook__ |
| 893 | +self.status_bar.message( |
| 894 | +_('Auto-debug deactivated')) |
890 | 895 |
|
891 | 896 | # Handler Helpers |
892 | 897 | defadd_normal_character(self,char): |
|