Per https://blog.golang.org/debugging-what-you-deploy
Make sure to compile your Go program with inlining and optimizations disabled
Also this is targetted towards delve
go build -gcflags "all=-N -l" /my/go/program
(delve on the commandline does this automatically, not sure if Goland does)