尝试使用 VSCode 调试器时,我收到一条错误消息:

"Failed to launch: could not launch process: can not run under Rosetta, check that the installed build of Go is right for your CPU architecture"

我阅读类似问题的解决方案时的一些背景背景:

  • 我使用的基础数据库不适用于 GO arm64
  • 因此,我使用的是 GO amd64
  • 切换到 arm64 意味着foundationDB 将无法工作,这不是一个选项

我尝试下载 dlv,但它不起作用。还尝试了here提出的解决方案,在x86-64中运行VSCode集成终端。

有没有办法让调试器使用 go1.18 darwin/amd64 与 Apple M1 一起工作?