Debug DLL


We compile Go code into a DLL which is used from an interpreter. I want to debug the DLL but can't make it to attach to the running process.

`gops` doesn't show anything, hence GoLand can't find any debugging processes too.

I can't give a specific command line to start the program after build. GoLand just tries to start the DLL, and it seems this is hard-coded. No way to provide a how-to-start my application command line.

Can I add any code to my DLL to break/attach into the debugger? I think debugging DLLs should be possible.


GoLand and gops can find and debug Go processes only.

Debug embedded Go is not available in Delve either, please see


Thanks for the link... need to find some workaround how to do this.


Please sign in to leave a comment.