How do I start up remote debugging with PyCharm?

后端 未结 3 1358
暗喜
暗喜 2020-12-02 04:33

I\'m trying to get debugging up between PyCharm (on windows host) and a debian virtual host running my django application. The instructions say to install the egg, add the

3条回答
  •  一整个雨季
    2020-12-02 04:45

    It is just a note , actually , but contains some info that may save hours.

    1. Right now pip install pydevd worked for me on both ubuntu and centos 6
    2. If you want to really debug remote server which is behind firewals and stuff, you can use the following trick :

    ssh -R 8081:localhost:8081 user@remote-server.com

    this allows remote code to connect to your machine listening on localhost:8081

    1. If remote debugger does not want to start, saying it can't find socket port , check your firewall rules. Note that rule with "127.0.0.1" is not the same as "localhost".

提交回复
热议问题