GoGdb icon indicating copy to clipboard operation
GoGdb copied to clipboard

How to add the -gcflags '-N' flag to get complete debugging info

Open loghound opened this issue 12 years ago • 1 comments

The compiler will optimize away variables makign some debugging difficult -- I was able to manually modify the build command to add '-gcflags -N' but I wonder if it's possible to make this an enviroment variable or somehow settable

loghound avatar Dec 30 '13 08:12 loghound

You can look at my fork. This commit added -gcflags (hardcoded).

zdychacek avatar Jul 22 '14 20:07 zdychacek