go idea goland debug 报错 no debug info found
文章目录
- 背景
- 原因
- 解决
背景
goland debug 项目报错:
Got a connection, launched process /Users/esteban.alvarez/Library/Caches/JetBrains/GoLand2024.1/tmp/GoLand/___2core_server (pid = 40849).Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.
Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.could not launch process: could not get the Go version for the moduledata extraction: no goversion found
原因
no debug info found, some functionality missing such as stack traces and variable evaluation. : GO-17137 (jetbrains.com)
https://github.com/golang/go/issues/61229
解决
go env -w CGO_ENABLED='0'
原文地址
go idea goland debug 报错 no debug info found