0

Why is the Type in VS Attach to Process showing X64 for PID 88048 (What can cause this ?) even though it is Managed code ?

Using default debugger type as Automatic, it assumes the process is native code, failing to load symbols (error is This module is a pre-compiled binary created by the ngen.exe tool.). But when I change the type to Managed (.NET 4.x) I can get symbols loaded.

enter image description here

Frank Q.
  • 6,001
  • 11
  • 47
  • 62
  • 1
    It is trying to be helpful, recognizing that the process also has unmanaged DLLs loaded. They always do. You then get two debugging engines loaded, stack traces are much more comprehensive when such a DLL is involved. They often are, especially on GUI apps. But the unmanaged engine now also sees the ngen-ed assemblies, like mscorlib.ni.dll. And dutifully reports that there is no PDB available for them. Not an error, just a notification. Debug > Windows > Modules gives an overview. – Hans Passant Oct 02 '22 at 12:41

0 Answers0