Analysing CLR internals through the SOS debugger in .NET Core

SOS is a debugging extension that is shipped with Windows and is available for Linux as well. It helps to debug .NET Core applications by providing information about CLR internals, especially memory allocation, the number of objects created, and other details about the CLR. We can use the SOS extension in .NET Core to debug the native machine code, which is specific to each platform.

To install the SOS extension for Windows, install the Windows Driver Kit (WDK) from https://developer.microsoft.com/en-us/windows/hardware/download-kits-windows-hardware-development.

When the Windows Driver Kit is installed, we can use various commands to analyze the CLR internals about the application ...

Get C# 7 and .NET: Designing Modern Cross-platform Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.