Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article applies to: ✔️ .NET 6.0 SDK and later versions
Note
Consider using the .NET debugger extensions instead, which include the SOS functionality and additional features.
There are two ways to download and install dotnet-sos
:
dotnet global tool:
To install the latest release version of the dotnet-sos
NuGet package, use the dotnet tool install command:
dotnet tool install --global dotnet-sos
Direct download:
Download the tool executable that matches your platform:
dotnet-sos [-h|--help] [options] [command]]
The dotnet-sos
global tool installs the SOS debugger extension. This extension lets you inspect managed .NET Core state from native debuggers like LLDB and WinDbg.
--version
Displays version information.
-h|--help
Shows command-line help.
Installs the SOS extension locally for debugging .NET Core processes. On macOS and Linux, the .lldbinit file is updated so that the extension automatically loads at LLDB startup. If you're installing SOS on Windows with older debugging tools (before version 10.0.18317.1001), you need to manually load the extension in WinDbg or cdb by running .load %USERPROFILE%\.dotnet\sos\sos.dll
in the debugger.
This overwrites any previous installations from the dotnet-debugger-extensions or dotnet-sos installers.
dotnet-sos install [--architecture <arch>]
--architecture <arch>
Specifies the processor architecture of the SOS binaries to install. By default, dotnet-sos
installs the architecture of the host machine. Use this option when you want to install SOS for an architecture that's different from the dotnet host architecture. For example, if you're running Arm32 binaries from an Arm64 host, you need to install SOS with dotnet-sos install --architecture Arm
.
The following architectures are available:
Arm
Arm64
X86
X64
Uninstalls the SOS extension and, on Linux and macOS, removes it from LLDB configuration.
dotnet-sos uninstall
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now