5 回答

TA貢獻1790條經驗 獲得超9個贊
什么對我有用:
檢查您的Mac正在使用的“芯片”,您可以從中檢查
"About This Mac" > "Overview" > "Chip"
如果使用蘋果芯片,則下載“arm64”類型的文件,例如“去達爾文-arm64.pkg”,“vscode-arm64”等。你明白我的觀點。
如果使用英特爾芯片,請使用“amd”類型下載。
從 https://github.com/go-delve/delve/tree/master/Documentation/installation 下載并安裝“DELVE”
運行調試器。
讓我知道,如果你也想要“launch.json”文件配置,調試。
編輯 11-04-22
共享啟動。
{
// 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": "Debug",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"args": [],
}
]
}

TA貢獻1831條經驗 獲得超9個贊

TA貢獻1872條經驗 獲得超4個贊
- 5 回答
- 0 關注
- 354 瀏覽
添加回答
舉報