Add ability to debug Go programs loaded as DLL
Open
kind/enhancement
os/windows
- Dominant language
- Go
- Stars
- 24.9k
- Forks
- 2.2k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 17
Description
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.
Contributor guide
Research direction
Start by reviewing the reproduction steps and example code in the linked golang-nuts discussion, then trace how Delve currently attaches to Go programs. Done means a Go program loaded as a DLL can be attached to and debugged through its Go code, with the behavior verified against that reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, go
- Domain
- devtools, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100