Skip to main content

Multithreaded django hook for PTVSD debugging

Project description

Django PTVSD Debug

A little 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...)


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

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_ptvsd_debug-1.0.3-py3-none-any.whl (3.7 kB) Copy SHA256 hash SHA256 Wheel py3
django-ptvsd-debug-1.0.3.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page