[完美解决]attach_linux_amd64.so: undefined symbol: AttachDebuggerTracing

pycharm或idea的2020.1版本会在python远程debug的时候出现这个问题。

查了全百度没发现有人提过这个方法,我在google上找到的,很简单。

全程在远程机上操作:

1、升级pydevd-pycharm:

pip install -U pydevd-pycharm

2、查找site-packages下pydevd_attach_to_process的路径,后面用于链接:

find ~ -name "pydevd_attach_to_process" 2>/dev/null

如我的是:

/root/anaconda3/lib/python3.6/site-packages/pydevd_attach_to_process

3、进入远程机器的pydev目录:

cd ~/.pycharm_helpers/pydev

4、备份原有的文件夹:

mv pydevd_attach_to_process pydevd_attach_to_process_bak

5、最后,链接目录:

ln -s /root/anaconda3/lib/python3.6/site-packages/pydevd_attach_to_process

问题解决。

你可能感兴趣的:([完美解决]attach_linux_amd64.so: undefined symbol: AttachDebuggerTracing)