【发布时间】:2022-01-05 14:35:33
【问题描述】:
问题不是如何调试,而是如何在架构和版本上设置调试器。
我不想更新 go without rosetta,它必须在相同的设置上运行。
这是系统,
- Go 版本 1.16(不是最新版本)
- 带有 Rosetta 终端的 Mac M1。
这里是
launch.json
文件。
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"program": "${workspaceRoot}",
"env": {},
"args": [],
"showLog": true
}
]
}
【问题讨论】:
标签: go visual-studio-code apple-m1 rosetta