#873·delve

Add ability to debug Go programs loaded as DLL

Author: am21Created Jun 12, 2017Updated Mar 5, 2026
Labelsos/windowskind/enhancement

Hi,

I need to debug a Go application that has to reside in a DLL. In order to have the DLL loading work properly, I had to write a small C layer on top of Go. How can I get dlv to attach to the Go code? Example code to reproduce my steps is at https://groups.google.com/d/msg/golang-nuts/ywzTYaalWLE/kn4GoobJAAAJ.