如何在Pycharm中使用远程解释器运行/调试本地代码?

2024-09-27 21:25:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我按照下面的说明设置远程解释器和远程部署。你知道吗

https://medium.com/@erikhallstrm/work-remotely-with-pycharm-tensorflow-and-ssh-c60564be862d

上面写着

Deployment

The remote interpreter can not execute a local file, PyCharm have to copy your source files (your project) to a destination folder on your remote server, but this will be done automatically and you don’t need to think about it!

但是,我甚至在工具中设置了自动部署|部署|自动上载(始终)。它没有按预期工作,也没有以无缝的方式自动在远程和本地之间同步文件。你知道吗

问题

那么,我如何才能跳过远程和本地文件夹之间的部署和同步,而只使用远程解释器运行/调试本地代码呢?你知道吗

我的意思是在一个本地的.py文件上,我应该可以使用远程解释器来调试一个断点?这使生活更轻松,不必担心同步。你知道吗


Tags: and文件tohttpscomyour远程remote

热门问题