Context: a python
flask server is running on vagrant, I need to remotely debut it.
PyCharm has integration with Vagrant, you can configure it
in Settings/Vagrant, I failed to make it work though, “stdin is not tty” error pops out:
But fret not, it turns out you can directly ssh into Vagrant
and start/debug python.
First, set up a Python remote interpreter in “Settings/Project- Interpreter”:
Now, “run/edit
configurations”, choose the remote Python interpret, and map your local
files with remote files.
PyCharm will perform some actions to make this work, if you
want to know what it does, check its log. You can find the log in “Help/Show Log In Explorer”.
No comments:
Post a Comment