-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run the debugger in NixOS #3085
Comments
See NixOS/nixpkgs#18995. You can probably work around this by setting CGO_CFLAGS to something (it doesn't matter what). |
Thanks @aarzilli i was able to work around by adding |
The NixOS Wiki also suggest adding the following line to hardeningDisable = [ "fortify" ]; Related: |
the official NixOS wiki is now here: https://wiki.nixos.org/wiki/Go#Using_cgo_on_NixOS |
I can confirm that I was having this problem when debuging a golang program with delve on vscode. Added the hardeningDisable into my shell.nix and now it is working. Thanks! pkgs.mkShell {
hardeningDisable = [ "fortify" ];
....
} |
dlv version
)?go version
)?What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: