title: Is there any way to debug Django apps running inside vagrant using VS Code?
body: <p>I've been trying to debug an Open edX instance running inside their devstack using VS Code but the debugger keeps giving me the error.</p>
  
  <p><code>Debug adapter process has terminated unexpectedly</code></p>
  
  <p>Here is my <code>launch.json</code></p>
  
  <pre><code>{
    "name": "Python: Open edX",
    "type": "python",
    "request": "attach",
    "localRoot": "${workspaceFolder}",
    "remoteRoot": "/edx/app/edxapp/edx-platform/manage.py",
    "port": 2222,
    "host": "localhost",
    "secret": "my_secret",
  },
  </code></pre>
  
  <p>Also ptvsd inserted into the source code in <code>manage.py</code></p>
  
  <pre><code>import ptvsd
  
  ptvsd.enable_attach("my_secret", address = ('192.168.33.10', 8005))
  
  ptvsd.wait_for_attach()
  </code></pre>