Pycharm Remote Debug 出现远程文件找不到的问题

问题描述

Pycharm Remote Debug 时出现:
Remote file xxxxxxxxx is mapped to the local path xxxxxxxxxxxxx and can’t be found.
You can continue debugging, but without the source.
To fix that you can do one of the following:
(1)xxxxx (2)xxxxx (3)xxxxxxx
查找Google相关问题,方法有:检查Path中是否存在特殊字符,检查pydevd-pycharm和pydevd版本兼容问题等,均未解决问题。

最终解决方法:uninstall掉虚拟环境中的jupyter-notebook包,该包由Pycharm在打开ipynb文件时,提示安装,uninstall之后,fix了问题。

python ssh interpreter debug:
ssh://name@ip:port/home/name/miniconda3/envs/paddle/bin/python -u /home/name/.pycharm_helpers/pydev/pydevd.py --cmd-line --multiproc --qt-support=auto --client 0.0.0.0 --port 44115 --file /home/name/workspace/some_dir/xxxxx.py
-u : -unbuffered stderr v.s. stdout
pydevd.py : 解析参数,执行run函数和_exec函数,调用pydev_imports.execfile(file, globals, locals)函数,进而调用builtin_compile和builtin_exec内置函数–>system call(C底层实现)

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

__草原灰太狼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值