dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.73k stars 1.07k forks source link

[feature request] Option for installer to download debugging symbols at the installation time and provide instructions on how to make them available for `gdb` #43174

Open vadimkantorov opened 3 months ago

vadimkantorov commented 3 months ago

I am installing .NET as wget https://dot.net/v1/dotnet-install.sh && bash dotnet-install.sh --channel 7.0

but then one cannot debug a basic SEGFAULTs with gdb:

I'm proposing to introduce two command-line options for installer which would:

  1. download symbols for all installed .so and native binaries - quite common need for dev environment
  2. install a debug, unoptimized version of CoreCLR binaries along with symbols

It would also be good to include a dotnet-symbol utility by default (especially if it's a small footprint) - it's very useful for dev environment, and figuring that one needs to dotnet install it separately is one more nuisance step :(

Getting some basic stacktraces from gdb right is important (even if SOS tools are only available in lldb)

Thanks!

vadimkantorov commented 2 months ago

@richlander Could you please transfer this issue to https://github.com/dotnet/sdk? I did not notice at first in the README that sdk repo is the home for new issues... Thanks!