Debugger won't start
I'm trying to debug my application, so I click on the Debug icon and I get the following error:
GOROOT=/usr/local/go #gosetup
GOPATH=/Users/npollitt/source/go #gosetup
/usr/local/go/bin/go build -o /private/var/folders/my/x171mlwd7pl75x6vn64g40300000gn/T/___go_build_daybreak -gcflags "all=-N -l" . #gosetup
"/Applications/GoLand 2018.3 EAP.app/Contents/plugins/go/lib/dlv/mac/dlv" --listen=localhost:53976 --headless=true --api-version=2 exec /private/var/folders/my/x171mlwd7pl75x6vn64g40300000gn/T/___go_build_daybreak -- #gosetup
API server listening at: 127.0.0.1:53976
could not launch process: stub exited while attempting to connect: signal: illegal instruction
Debugger finished with exit code 1
Please sign in to leave a comment.
Hi Nick,
Sorry to hear you have issues debugging your application.
What version of Go are you using? On what OS version? Is this problem reproducible in other applications as well, on the same machine, or just that one application? What steps can we use to replicate your problem? Did this happen with a previous version of the IDE? Are you on the latest EAP?
Additional logs would also be useful. To generate them, go to "Help | Debug Log Settings..." and then add the following line"#com.goide.dlv.DlvVm" (without the quotes). Then try to run debugging again and after the error is encountered, you can remove the above setting by deleting it, then go to "Help | Compress Logs and Show in Finder" and send the zip to my e-mail, florin at jetbrains com. You can also open an issue on our tracker, https://youtrack.jetbrains.com/issues/Go, and attach the archive there with the visibility set to "jetbrains-team" only so that others do not see the contents of it. Please be warned that these logs may include some information about your application and even some state of the application memory, depending on the stage this issue happens.
Thank you.
I'm running the Oct 10 build of EAP 2018.3, with go1.11 darwin/amd64. Everything was working fine last Friday. Yesterday I updated to macOS 10.14.1 (18B65), and then this error started happening.
The problem is only on this machine for GoLand. Xcode is working just fine. It looks like it's the dlv call that is causing the issue:
"/Applications/GoLand 2018.3 EAP.app/Contents/plugins/go/lib/dlv/mac/dlv" --listen=localhost:53976 --headless=true --api-version=2 exec /private/var/folders/my/x171mlwd7 pl75x6vn64g40300000gn/T/___go_build_daybreak --
API server listening at: 127.0.0.1:53976
could not launch process: stub exited while attempting to connect: signal: illegal instruction
I checked the help for "dlv exec" and I didn't see any verbose flags to kick out more logging.
I re-installed Xcode Command Line tools and it's working. Thanks.