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
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.
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.
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:
set(ELF_SYMBOLS true
, symbols will be added to the final binary (via https://github.com/includeos/IncludeOS/blob/v0.16.0-release/cmake/os.cmake#L206)Musl and musl-unpatched uses
--enable-debug
There could be more :-)
The text was updated successfully, but these errors were encountered: