Could not launch process: decoding dwarf section info at offset 0x0: too short

Hi All,

I am facing a problem when trying to run my go program in debug mode in goland.I am getting below error.

GOROOT=/usr/local/go #gosetup
GOPATH=/Users/rajeshjain/projects/GoProjects #gosetup
/usr/local/go/bin/go build -o /private/var/folders/74/nqvp3zpx5812qtgzxwncgdb40000gn/T/__go_build_main_go__1 -gcflags “all=-N -l” /Users/rajeshjain/projects/GoProjects/src/github.com/rajeshcjain/GolangTraining/02_NumberSystem/03_loop/main.go #gosetup
/Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv --listen=localhost:50205 --headless=true --api-version=2 --backend=default exec /private/var/folders/74/nqvp3zpx5812qtgzxwncgdb40000gn/T/__go_build_main_go__1#gosetup
could not launch process: decoding dwarf section info at offset 0x0: too short

Debugger finished with exit code 1

Can someone guide me why is it coming and how can i fix it?

Thanks and regrad

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.