You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-ptvsd-debug

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-ptvsd-debug

Multithreaded django hook for PTVSD debugging

1.0.3
pipPyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts