Question is not to how to debug, It's like how to set up debugger on architecture and version.
I don't want to update go without rosetta, It has to be run on same set up.
Here is system,
- Go version 1.16 (Not the latest one)
- Mac M1 with Rosetta Terminal.
Here is
launch.json
file.
{
// 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
}
]
}