【发布时间】:2015-11-28 12:14:02
【问题描述】:
PyCharm 远程调试 (pydevd) 未连接并显示以下消息:
error: [Errno 10061] No connection could be made because the target machine actively refused it
我该如何解决它?
PyCharm 中的输出控制台显示:
Starting debug server at port 21000
Use the following code to connect to the debugger:
import pydevd
pydevd.settrace('*.*.*.*', port=21000, suspend=False)
Waiting for process connection...
Server stopped.
我检查了防火墙,并且 PyCharm 允许传入和传出连接。
【问题讨论】:
-
哪个操作系统?你的 PyCharm 版本?
-
Win 7,Pycharm 4.5.4 专业版
-
这台机器有多“远程”?您是否尝试在虚拟机中调试代码?
-
您是否检查了端口 21000 是否有监听以及另一端是否设置了 pydevd?
标签: python debugging pycharm pydev remote-debugging