DEADBEEF DEADBEEF - 1 year ago 248
Python Question

How to use visual studio code to debug django

I'm new inot django development and come from desktop/mobile app development with Xcode and related IDE.

I've to use Django and I was wondering if there was a efficient way to debug it using Visual Studio Code (or Atom).

Any help related to Django IDE would be helpful too.

Answer Source

For VSCode (full disclosure, I'm one of the VSCode developers) try installing the Python extension to get started.

This documentation covers debugging Django. There should be a included debug configuration or you can add your own to the launch.json file:

    "name": "Django",
    "type": "python",
    "request": "launch",
    "stopOnEntry": false,
    "pythonPath": "${config.python.pythonPath}",
    "program": "${workspaceRoot}/",
    "args": [
    "debugOptions": [

The Python extension also provide many other features that you may find useful.

Hope that helps you get started.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download