I'm having issues debugging tests while using github.com/h2non/bimg (v1.1.5). Attempting to debug results in the following error:
go build github.com/h2non/bimg: invalid flag in pkg-config --cflags: -Xpreprocessor
I tried explicitly setting export CGO_CFLAGS_ALLOW="-Xpreprocessor"
in my .zshrc
as well as the following launch.json
:
{ "version": "0.2.0", "configurations": [ { "name": "Launch Package", "type": "go", "request": "launch", "mode": "debug", "program": "${workspaceFolder}", "env": { "CGO_CFLAGS_ALLOW": "-Xpreprocessor", } } ] }
I've also tried -Wl,(-Xpreprocessor)
instead of simply -Xpreprocessor
but that didn't fly either.
What is the appropriate way to get this to debug?
Thank you for your time.
https://stackoverflow.com/questions/67286751/how-should-i-pass-cgo-cflags-allow-xpreprocessor-to-the-debugger-in-vscode-go April 28, 2021 at 12:08AM
没有评论:
发表评论