我用PyCharm在我的树莓派编程。然后,我设置部署:
而且,我还设置了与远程解释器一起工作的调试
在我的树莓中,我可以在我设置的目录中看到我的脚本,/home/pi/foo
:
pi@penelo:~/foo $ pwd
/home/pi/foo
pi@penelo:~/foo $ ls
main.py TestClass.py
但是,当我在PyCharm中运行debug时,它尝试在raspberry上的/tmp/pycharm_project_967
中执行脚本,而不是{
为什么?如何将PyCharm设置为在/home/pi/foo/
处执行脚本?在
我解决了我的问题。当我创建这个项目时,我错误地设置了配置
Remote project location
。在我使用了默认值,而不是
/home/pi/foo
。在相关问题 更多 >
编程相关推荐