lloiser / go-debug

🐛 A go debugger for atom using delve.
https://atom.io/packages/go-debug
MIT License
388 stars 21 forks source link

go-debug doesn't work with any cgo library #61

Closed michael-nischt closed 7 years ago

michael-nischt commented 7 years ago

If importing any cgo library (e.g. "github.com/go-gl/gl/v4.5-core/gl") executing works but debugging doesn't with the following error:

Delve output: could not launch process: Unreadable version number: could not read string len input/output error

It's probably related to this issue: https://github.com/derekparker/delve/issues/477 So maybe someone can add the workaround using -ldflags="-linkmode=internal" to go-debug?

lloiser commented 7 years ago

It is possible to define configurations with the latest version (v1.0.0). These configurations also include buildFlags which will be passed through to delve.