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 process
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-08-20 09:30:04,686 [ 121490] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_91
2022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_77
2022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_78
2022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_56
2022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_41
2022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_32
2022-08-20 09:30:04,687 [ 121491] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_14
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.s
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_116
2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_127
2022-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.go
2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_131
2022-08-20 09:30:04,695 [ 121499] WARN - #c.g.i.b.g.r.BlazeDlvPositionConverter - Unable to find local file for debug path: <missing>_184
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.go
2022-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.s
2022-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.go
2022-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 map
runtime.gopanic (0x10238f9d3)
/Users/admin/buildAgent/temp/buildTmp/go/src/runtime/panic.go:838
runtime.mapassign_fast64 (0x10236e503)
/Users/admin/buildAgent/temp/buildTmp/go/src/runtime/map_fast64.go:95
github.com/go-delve/delve/service/debugger.createLogicalBreakpoint (0x10269b107)
/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:719
github.com/go-delve/delve/service/debugger.(*Debugger).CreateBreakpoint (0x10269ad07)
/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:683
github.com/go-delve/delve/service/rpc2.(*RPCServer).CreateBreakpoint (0x1026fcfeb)
/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpc2/server.go:259
reflect.Value.call (0x10241a3b3)
/Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:556
reflect.Value.Call (0x102419bc7)
/Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:339
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec.func2 (0x1027bebd7)
/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:342
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec (0x1027be257)
/Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:344
runtime.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

1
6 comments

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?

0

Hello,

 

This works really well for us, thank you!    Facing same issue here. Help is appreciated.

Thanks,

0

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

 

2022-08-29 16:22:14,445 [251926337]   INFO - #c.g.d.DlvVm - Internal debugger error: assignment to entry in nil map
runtime.gopanic (0x1029339d3)
    /Users/admin/buildAgent/temp/buildTmp/go/src/runtime/panic.go:838
runtime.mapassign_fast64 (0x102912503)
    /Users/admin/buildAgent/temp/buildTmp/go/src/runtime/map_fast64.go:95
github.com/go-delve/delve/service/debugger.createLogicalBreakpoint (0x102c3f107)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:719
github.com/go-delve/delve/service/debugger.(*Debugger).CreateBreakpoint (0x102c3ed07)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:683
github.com/go-delve/delve/service/rpc2.(*RPCServer).CreateBreakpoint (0x102ca0feb)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpc2/server.go:259
reflect.Value.call (0x1029be3b3)
    /Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:556
reflect.Value.Call (0x1029bdbc7)
    /Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:339
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec.func2 (0x102d62bd7)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:342
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec (0x102d62257)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:344
runtime.goexit (0x102964203)
    /Users/admin/buildAgent/temp/buildTmp/go/src/runtime/asm_arm64.s:1263

org.jetbrains.concurrency.MessageError: Internal debugger error: assignment to entry in nil map
runtime.gopanic (0x1029339d3)
    /Users/admin/buildAgent/temp/buildTmp/go/src/runtime/panic.go:838
runtime.mapassign_fast64 (0x102912503)
    /Users/admin/buildAgent/temp/buildTmp/go/src/runtime/map_fast64.go:95
github.com/go-delve/delve/service/debugger.createLogicalBreakpoint (0x102c3f107)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:719
github.com/go-delve/delve/service/debugger.(*Debugger).CreateBreakpoint (0x102c3ed07)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/debugger/debugger.go:683
github.com/go-delve/delve/service/rpc2.(*RPCServer).CreateBreakpoint (0x102ca0feb)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpc2/server.go:259
reflect.Value.call (0x1029be3b3)
    /Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:556
reflect.Value.Call (0x1029bdbc7)
    /Users/admin/buildAgent/temp/buildTmp/go/src/reflect/value.go:339
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec.func2 (0x102d62bd7)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:342
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).serveJSONCodec (0x102d62257)
    /Users/admin/buildAgent/work/4c3e5e3eabfaf2d2/service/rpccommon/server.go:344
runtime.goexit (0x102964203)
    /Users/admin/buildAgent/temp/buildTmp/go/src/runtime/asm_arm64.s:1263

 

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

1

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.

0

Michaelh, Delve debugger doesn't support Rosseta 2, so you cannot debug amd64 binaries on arm64 machine.

0

My bad, Daniil! I mistyped and meant "arm64", sorry for the confusion!

0

Please sign in to leave a comment.