Update documentation to include mention of DEBUG_ON_EXCEPTION

This commit is contained in:
Roberto Rosario
2012-07-29 01:20:46 -04:00
parent 6fa0c226b0
commit 3b44c785ca
2 changed files with 11 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ from .models import AutoAdminSingleton
from .debug import insert_pdb_exception_hook
if getattr(settings, 'DEBUG_ON_EXCEPTION', False):
insert_import_hook()
insert_pdb_exception_hook()
bind_links(['about_view', 'license_view'], [about_view, license_view], menu_name='secondary_menu')
bind_links(['current_user_details', 'current_user_edit', 'password_change_view'], [current_user_details, current_user_edit, password_change_view], menu_name='secondary_menu')

View File

@@ -101,4 +101,14 @@ Likewise, to see the debug output of the ``tags`` app, just add the following in
},
--------------------------
Automatic PDB on exception
--------------------------
For an additional tool for debugging problems in **Mayan EDMS**, set the
configuration option ``DEBUG_ON_EXCEPTION`` to True and whenever an
exception occurs, the `Python Debugger`_ will launch automatically at
the exception point.
.. _`logging capabilities`: https://docs.djangoproject.com/en/dev/topics/logging
.. _`Python Debugger`: http://docs.python.org/library/pdb.html