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

Download files

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

Files for django-ptvsd-debug, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size django_ptvsd_debug-1.0.3-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-ptvsd-debug-1.0.3.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page