【问题标题】:How can I debug a Windows build using Goland running on a Mac?如何使用在 Mac 上运行的 Goland 调试 Windows 构建?
【发布时间】:2021-11-18 16:06:16
【问题描述】:

我注意到一些仅在 Windows 版本中发生的问题。但是,我在 Mac 上运行的 Golang 上进行开发。如何使用在 Mac 上运行的 Goland 调试 Windows 构建?

【问题讨论】:

  • 请提供更多细节。如果没有远程调试,您肯定无法在 macOS 上调试 Windows 二进制文件。您面临什么问题?
  • 我想通了。我们可以将 Goland 中的构建标签更改为 Windows。请看答案。

标签: windows goland


【解决方案1】:

我找到了如何在 Mac 上开发时为 Windows 调试的答案。我们需要更改 Goland 中的目标操作系统。

转到 Preferences → Go → Build Tags & Vendoring 并选择 OS to Windows。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-25
    • 2018-02-17
    • 1970-01-01
    • 1970-01-01
    • 2018-06-01
    • 2021-10-06
    相关资源
    最近更新 更多