title: How to configure Visual Studio Code to debug Django app in a virtualenv?
body: <p>I would like to have possibility to do a debugging of Django application in Visual Studio Code. I have a virtualenv, made a change in <em>launch.json</em> file that look like this:</p>
  
  <pre><code>{
      "name": "Django",
      "type": "python",
      "request": "launch",
      "stopOnEntry": true,
      "pythonPath": "${workspaceRoot}/.venv/bin/python2.7",
      "program": "${workspaceRoot}/mysite/manage.py",
      "args": [
          "runserver"
      ],
      "debugOptions": [
          "WaitOnAbnormalExit",
          "WaitOnNormalExit",
          "DjangoDebugging",
          "RedirectOutput"
      ]
  },
  </code></pre>
  
  <p>put several break points in the code and run it. Unfortunately, the execution is not stopped on the line with break points. I tried the same without virtualenv and everything worked perfectly.</p>
  
  <p>Please, point out what I am doing wrong here.</p>