You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fairly new at Go, so this maybe a dumb question.
I have Goldmark in a project as a transtive dependency. I wan't to launch this project in the VSCode debugger (it uses Delve) but compilation fails on
Build Error: go build -o /workspaces/my-app/__debug_bin -gcflags all=-N -l .
go build github.com/yuin/goldmark/util: /usr/local/go/pkg/tool/linux_arm64/compile: signal: killed (exit status 1)
What I have tried so far:
reproduce this outside the debugger process by executing go build -x -gcflags all='-N -l' in a terminal => same error
removing the -N flag, build command becomes go build -x -gcflags all='-l' => compilation OK
isolating Goldmark in its own project with no other dependency => same error
Goldberg version 1.5.4, Go version 'go1.19.6 linux/arm64'.
I can build the project without -N but this flag is required when debugging.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi goldmark!
I'm fairly new at Go, so this maybe a dumb question.
I have Goldmark in a project as a transtive dependency. I wan't to launch this project in the VSCode debugger (it uses Delve) but compilation fails on
What I have tried so far:
go build -x -gcflags all='-N -l'
in a terminal => same error-N
flag, build command becomesgo build -x -gcflags all='-l'
=> compilation OKGoldberg version 1.5.4, Go version 'go1.19.6 linux/arm64'.
I can build the project without
-N
but this flag is required when debugging.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions