Elevating debugging with auto-decomplication and External Sources
Visual Studio 2022 has significantly enhanced the debugging experience with the introduction of auto-decompilation and External Sources. These features allow developers to debug external code, such as .NET libraries or NuGet packages, with the same ease as their own code.
Auto-decompilation
Auto-decompilation is a feature that transforms compiled binary code into a higher-level programming language, such as C#, allowing us to examine, troubleshoot, and fix issues in external code as if they were working with their own code. This is particularly useful for debugging scenarios where the source code is not available or when we need to inspect code from a third-party library.
How auto-decompilation works
The debugger uses the ILspy decompiler engine to decompile external code in real time and incorporate it into the debugging session. The debugger first looks for local external sources on our machine, then uses...