I can't seem to get the debugger to run. The debugging run icon is grayed out and the menu options are missing.
This is only the case for main
, I can debug unit tests just fine.
Similar questions mention the project structure, but I can't see anything wrong:
$GOPATH/src/foo.bar.com/some/more/dirs/
project/ <-- this directory is opened in Gogland
app1/
main.go
app2/
main.go
mylib/
abc.go
abc_test.go
I can right click on abc_test.go
and run it with or without debugging, but if I right click on one of the main.go
files, I can only run it.
Run configuration:
Gogland build 162.12024.32