I'm trying to configure remote debugging in pycharm on vagrant, but when I run I get the following error:
ssh://[email protected]:2222/usr/local/strongarm_venv/bin/python2.7 -u /home/vagrant/.pycharm_helpers/pydev/pydevd.py --multiproc --client '0.0.0.0' --port 49921 --file /vagrant/manage.py runserver 8000
/usr/local/strongarm_venv/bin/python2.7: can't open file '/home/vagrant/.pycharm_helpers/pydev/pydevd.py': [Errno 2] No such file or directory
I've searched the internet and my entire drive for a directory called ".pycharm_helpers" but all I can find is that pycharm was supposed to have created it at some point on the VM, which it hasn't done. Where can iI find a copy of it to manually insert, or how do I tell pycharm to put it there?
If you go to the Default Settings under Default Project > Project Interpreter, and make sure your Vagrant VM's python is selected as the Project Interpreter.
If it is not shown as the current selection, drop down the list of interpreters and select it.
Most likely, if it is not appearing as the selected interpreter, the vagrant machine does not match the configuration when you first connected the interpreter to the machine, in which case the PyCharm will try to fix it.
If it fails to fix it, remove the interpreter and add it back again.