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被允许进行进出连接。