Remote Debugger not Working
Answered
Hi All,
Recently I have been having issues using Remote Debug in PyCharm. Remote run works fine, but the debug tool does not. Below is the error I see when trying to perform a remote debug.
ssh://[username]@[hostname]:22/usr/bin/python2.7 -u /home/[username]/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 58677 --file [path to project]
Process finished with exit code -1
Deployment is configured correctly, and updated code is pushed to the remote server when I start the remote run/remote debug tools, but debug always gives that error. Doesn't matter what port it starts on either, I've varied the port with no success.
Please sign in to leave a comment.
Hi! Could you please set environment variable PYCHARM_DEBUG=True and provide console output?
Hi Elizabeth,
I set the PYCHARM_DEBUG=TRUE environment variable within the Run/Debug configuration I am using. The output appears the same as above, but I have included it below.
ssh://[username]@[hostname]:22/usr/bin/python2.7 -u /home/[username]/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 57496 --file [path to project]
Process finished with exit code -1
I hit the same issue with IntelliJ IDEA 2016.3.4. to resolve I needed to uninstall and re-install the Python plug-in.
I am having the same issues with PyCharm2017.1.4 and also had it with PyCharm2016.3. I uninstalled and reinstalled the .pycharm_helpers inside my Vagrant VM and that did not resolve the issue. Is that what you are referring to here? Or when you say the "Python plug-in" are you referring to something else?
Hi! Please, create an issue in our issue tracker: https://youtrack.jetbrains.com/issues/pycharm and attach the contents of your log folder (Help | Show log in filies)
Thanks for your reply. I already created a ticket in YouTrack about a week ago. It’s PY-25089. Here’s a link.