Skip to main content

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

  1. Add django_ptvsd to your INSTALLED_APPS above Django
INSTALLED_APPS = (
    'django_ptvsd',
    ...
)
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ptvsd-debug-1.0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

django_ptvsd_debug-1.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for django-ptvsd-debug-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4c58dfe5b9be22e2cc09c1d87857d269d5a3263e8c9108f1d92701ce1ce9715d
MD5 2c161351a9536e42f5a1e4de27dc269b
BLAKE2b-256 6f851db38aaca827c1d93333f63beb7169d87010e87611f43607192d2b464210

See more details on using hashes here.

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

Hashes for django_ptvsd_debug-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 645d0a5cb27f565bc54635dddbcb27a15570fef0b027883ebae0d4a1a98d3c63
MD5 ce1aec20f68be19999777c6d61cbc56e
BLAKE2b-256 af09da531bb38c6282f6de9adf0935799d8cdf08f424fd056e83d7c49f0143d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page