Skip to content

ScottBarkman/django-ptvsd-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages