I compile my binary like this go build -gcflags '-N -l', but when I run them in dlv I get Warning: debugging optimized function. My guess it's that it's a different host than the build host and the sources are not available. Is there any way to work around this?
-gcflags="all=-N -l"when building the binary to apply flags to all packages (main and dependencies)