[Solved]-Vagrant debugging python/django on Pycharm


If you

  1. Let your PyCharm project configuration know about the project’s vagrant box
  2. Set up a remote interpreter of type Vagrant referencing the right python executable within the vagrant box
  3. Use that remote interpreter as your project’s python interpreter

then you shouldn’t have to fuss around with ssh and with debugger command lines yourself anymore. Just tell PyCharm what you want to debug as if it were a local process. (Might work even better if you also let PyCharm know that it’s dealing with a Django project.)


Leave a comment