A simple plugin to attach a debugger in Django during runserver
Project description
django-debugger
A simple plugin to attach a debugger in Django during runserver
Installation
pip install django-debugger
Usage
-
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.
Settings Variables
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-debugger-0.6.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for django_debugger-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1ae97aa7ebd7434ad8157e5058e7be761a4a647248c694ac88768de2f0196c |
|
MD5 | 09d40e9fddceddc3223255cd00ff7968 |
|
BLAKE2b-256 | 1c05d59f1c48d4a726c1728c58d06fce0ddf61f26aca53a771136b709e7e74d5 |