Multithreaded django hook for PTVSD debugging
Project description
Django PTVSD Debug
A little manage.py tweak to attach a PTVSD debugger during runserver. Built with WSL development in mind since we have to treat it like remote in apps like VSCode (for now...)
Usage
- Add django_ptvsd to your INSTALLED_APPS above Django
INSTALLED_APPS = (
'django_ptvsd',
...
)
- pass
--ptvsd
flag to runserver command
django-admin runserver --ptvsd
Django Settings
PTVSD_ENABLE = False
Attach PTVSD by default. No need for --ptvsd
flag
PTVSD_REMOTE_ADDRESS = '0.0.0.0'
- Which address to listen on
PTVSD_REMOTE_PORT = 5678
- Which port to listen on
PTVSD_WAIT_FOR_ATTACH = False
- Whether or not to wait for attach before continuing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-ptvsd-debug-1.0.3.tar.gz
.
File metadata
- Download URL: django-ptvsd-debug-1.0.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c58dfe5b9be22e2cc09c1d87857d269d5a3263e8c9108f1d92701ce1ce9715d |
|
MD5 | 2c161351a9536e42f5a1e4de27dc269b |
|
BLAKE2b-256 | 6f851db38aaca827c1d93333f63beb7169d87010e87611f43607192d2b464210 |
File details
Details for the file django_ptvsd_debug-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: django_ptvsd_debug-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 645d0a5cb27f565bc54635dddbcb27a15570fef0b027883ebae0d4a1a98d3c63 |
|
MD5 | ce1aec20f68be19999777c6d61cbc56e |
|
BLAKE2b-256 | af09da531bb38c6282f6de9adf0935799d8cdf08f424fd056e83d7c49f0143d9 |