pip install pydevd3. 第三步:在本地设置监听配置
run -> Edit Configurations -> “+” -> Python Debug Server
右侧具体信息中填写三项:
IDE host name: 本地IPv4的地址 Port: 随便填一个,比如10000 Path mapping: 本地对应服务器的映射 最后Apply4. 第四步:将如下代码插入至远程计算机的应用程序中
# 插入位置为需要Debug的地方
import pydevd
pydevd.settrace('172.*.*.*', port=10000, stdoutToServer=True, stderrToServer=True)
5. 第五步:在PyCharm中启动Debug Server


