Goland debugger doesn't stop at break point
Answered
Hi,
I am unable to use Goland IDE (2022.2.2) debugger. I am getting the following error in the IDE logs. Can you please provide suggestions regarding how to get past it? TIA
2022-08-20 09:30:04,181 [ 120985] INFO - #c.g.e.GoRunningState - Start Delve debug process2022-08-20 09:30:04,683 [ 121487] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/p224.go2022-08-20 09:30:04,683 [ 121487] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/sort/zfuncversion.go2022-08-20 09:30:04,684 [ 121488] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/nistec/p521.go2022-08-20 09:30:04,684 [ 121488] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p384.go2022-08-20 09:30:04,684 [ 121488] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/edwards25519.go2022-08-20 09:30:04,685 [ 121489] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p384_fiat64.go2022-08-20 09:30:04,686 [ 121490] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/nistec/p384.go2022-08-20 09:30:04,686 [ 121490] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_912022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_772022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_782022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_562022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_412022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_322022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_142022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p224_invert.go2022-08-20 09:30:04,688 [ 121492] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/scalar.go2022-08-20 09:30:04,688 [ 121492] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/p521.go2022-08-20 09:30:04,688 [ 121492] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p224_fiat64.go2022-08-20 09:30:04,689 [ 121493] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/os/pipe_bsd.go2022-08-20 09:30:04,689 [ 121493] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <autogenerated>2022-08-20 09:30:04,690 [ 121494] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/field/fe_amd64.go2022-08-20 09:30:04,691 [ 121495] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/p256_asm.go2022-08-20 09:30:04,691 [ 121495] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/nistec/p224.go2022-08-20 09:30:04,691 [ 121495] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/field/fe_amd64.s2022-08-20 09:30:04,691 [ 121495] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p521.go2022-08-20 09:30:04,692 [ 121496] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p521_invert.go2022-08-20 09:30:04,692 [ 121496] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p384_invert.go2022-08-20 09:30:04,693 [ 121497] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/field/fe_arm64_noasm.go2022-08-20 09:30:04,693 [ 121497] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/field/fe.go2022-08-20 09:30:04,694 [ 121498] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/tables.go2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/scalarmult.go2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_1162022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_1272022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/ed25519/internal/edwards25519/field/fe_generic.go2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_1312022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_1842022-08-20 09:30:04,697 [ 121501] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/rand/eagain.go2022-08-20 09:30:04,698 [ 121502] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p521_fiat64.go2022-08-20 09:30:04,699 [ 121503] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/internal/execabs/execabs.go2022-08-20 09:30:04,700 [ 121504] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: _cgo_gotypes.go2022-08-20 09:30:04,700 [ 121504] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/p384.go2022-08-20 09:30:04,701 [ 121505] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/p256_asm_amd64.s2022-08-20 09:30:04,701 [ 121505] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: GOROOT/src/crypto/elliptic/internal/fiat/p224.go2022-08-20 09:30:04,703 [ 121507] INFO - #c.g.d.DlvVm - could not find file <test go file I am trying to debug>org.jetbrains.concurrency.MessageError: could not find file <test go file I am trying to debug>2022-08-20 09:30:04,704 [ 121508] INFO - #c.g.d.DlvVm - Internal debugger error: assignment to entry in nil mapruntime.gopanic (0x10238f9d3)/Users/admin/buildAgent/temp/buildTmp/go/src/runtime/panic.go:838runtime.mapassign_fast64 (0x10236e503)/Users/admin/buildAgent/temp/buildTmp/go/src/runtime/map_fast64.go:95github.com/go-delve/delve/service/debugger.createLogicalBreakpoint (0x10269b107)/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:719github.com/go-delve/delve/service/debugger.(*Debugger).CreateBreakpoint (0x10269ad07)/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:683github.com/go-delve/delve/service/rpc2.(*RPCServer).CreateBreakpoint (0x1026fcfeb)/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpc2/server.go:259reflect.Value.call (0x10241a3b3)/Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:556reflect.Value.Call (0x102419bc7)/Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:339github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec.func2 (0x1027bebd7)/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:342github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec (0x1027be257)/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:344runtime.goexit (0x1023c0203)/Users/admin/buildAgent/temp/buildTmp/go/src/runtime/asm_arm64.s:1263
Other details :
go version go1.19 darwin/arm64
Delve Debugger
Version: 1.9.0
Build: $Id: 69310c2f438e492f892d6af22e8e62c8ea1e9d8d $
I also don't see tick mark besides the break point I add in the IDE. While running the test in debug mode, red dot changes to grey (no entry symbol) and shows the following error while hovering over that symbol
Please sign in to leave a comment.
Hello,
Are you trying to debug a Bazel project with Bazel plugin?
If so, it seems that it doesn't support Go 1.19. Can you reproduce it with f.e with 1.17 or 1.18 version?
Hello,
This works really well for us, thank you! Facing same issue here. Help is appreciated.
Thanks,
i see the same underlying error in intellij
no bazel though. also noteworthy: it works for some of my projects, not for others. and i have no clue what the difference is.
UPDATE:
i know now what the difference is: i was adding GOARCH=amd64 to my runconfig because some tests were not running otherwise. but this seems to break debugging in turn. so for me this problem seems to be a side-effect of another appleM1 hardware related workaround
IntelliJ IDEA 2022.2.1 (Ultimate Edition)
Build #IU-222.3739.54, built on August 16, 2022
Runtime version: 17.0.3+7-b469.37 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Non-Bundled Plugins:
org.jetbrains.plugins.go (222.3739.40)
name.kropp.intellij.makefile (222.3739.24)
com.intellij.guice (222.3739.24)
com.github.chencn.yamlandprops (1.0.5)
com.intellij.bigdatatools (222.3345.33)
com.haulmont.jpab (2022.3.6-222)
Kotlin: 222-1.7.10-release-334-IJ3739.54
On one hand, I'm happy that someone else has GOARCH=amd64 issue, on the other hand, I'm unhappy that there's no solution.
For monkey patching with gomonkey you have to specify the arch, but then I lose the ability to set and stop at breakpoints.
Michaelh, Delve debugger doesn't support Rosseta 2, so you cannot debug amd64 binaries on arm64 machine.
My bad, Daniil! I mistyped and meant "arm64", sorry for the confusion!