A simple plugin to attach a debugger in Django during runserver
pip install django-debugger
-
Prepend django_debugger to top of the INSTALLED_APPS
INSTALLED_APPS = [ "django_debugger", ... ] # Or if you have multiple settings configuration INSTALLED_APPS = [ "django_debugger", ... # custom development apps ] + INSTALLED_APPS
-
Add
--enable-debugger
argument to runserver commandpython manage.py runserver ---enable-debugger 0.0.0.0:8000
OR
Add
DEBUGGER_ENABLE = True
to settings file.
DEBUGGER_ENABLE = True
: Attaches debugger.DEBUGGER_ADDRESS = "0.0.0.0"
: Address to listen for remote debuggingDEBUGGER_PORT = 5678
: Port to listen for remote debuggingDEBUGGER_WAIT_FOR_ATTACH = False
: Wait for debugger to attach before continuing.