VS代码:与本地文件(GO)的远程调试

发布于 2025-01-23 14:15:38 字数 225 浏览 5 评论 0原文

我有一台远程计算机,上面附有物理硬件,与我的GO代码接口一起。该代码必须在此远程计算机上运行才能使其工作。

我在单独的计算机上使用VS代码。我想保留代码文件 local (在开发机上),因为它具有所有版本控件并正确设置,但是在远程 /em>机器。有没有办法实现这一目标?

我知道VS代码支持SSH上的远程开发,但是它要求源代码文件也在远程计算机上。

I have a remote machine that has physical hardware attached that my Go code interfaces with. The code must be run on this remote machine for it to work.

I'm using VS Code on a separate machine. I'd like to keep the code files local (on the development machine), as it has all of the version control and such set up properly, but run the Go debugger on the remote machine. Is there a way to accomplish this?

I know VS Code supports remote development over SSH, but it requires the source code files to also be on the remote machine.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文