Skip to content
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

Make it easier to enable/disable debugging #2279

Open
MagnusS opened this issue Sep 10, 2024 · 1 comment
Open

Make it easier to enable/disable debugging #2279

MagnusS opened this issue Sep 10, 2024 · 1 comment

Comments

@MagnusS
Copy link
Member

MagnusS commented Sep 10, 2024

When debugging it would be useful to have a single option for enabling symbols and debugging information and avoid stripping the binary. Now that stacktraces work again it can also be useful with symbols from libcxx and musl. One solution could be to use dontStrip and enableDebugging in nix to control it, see https://nixos.wiki/wiki/Debug_Symbols.

Some debugging options I have found are listed below.

In cmake:

Musl and musl-unpatched uses --enable-debug

There could be more :-)

@fwsGonzo
Copy link
Member

Everything needs to be built with symbols, and then at the end there's a decision to strip or not. That will also be compatible with backtraces support, since they also need symbols and then strip after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants