pycharm远程调试:找不到空闲套接字

时间:2017-03-08 17:41:20

标签: python-2.7 pycharm ubuntu-14.04 remote-debugging ssh-tunnel

我正在尝试使用远程调试但在pycharm上出现此错误:

运行remoteTest时出错: 找不到免费套接字

我的远程主机是Ubuntu |(用户名和密码),我的localhost是windows,我按照以下教程: https://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/ 我在putty上使用ssh隧道连接到服务器。

import pydevd
pydevd.settrace('localhost', port=21000, stdoutToServer=True, stderrToServer=True)

0 个答案:

没有答案