Offline debugging of .NET Core / Full CLR applications

We need to debug .NET Full CLR and Core CLR applications running on production Windows servers, without the possibility of using remote debugging (msvsmon) or installing a full IDE (Visual Studio / Visual Studio Core, ...).

How can we debug these applications?

A 64-bit version of MDbg can be obtained using NuGet . It does not work with ASP.NET Core processes, 32 or 64-bit.

Other observations:

  • The MDbg version obtained through NuGet can be forced to be converted to 32-bit s corflags /32BITREQ+ /Force Mdbg.exe, which allows you to debug 32-bit processes of the full CLR.
  • There is an open GitHub problem for port MDbg.exe in CoreCLR that indicates that it is currently unavailable.
+4
source share

Source: https://habr.com/ru/post/1684393/


All Articles