Viewing loaded modules
To identify what might be causing performance issues such as excessive memory load, or that might be generating runtime errors, it can be useful to see what modules have been loaded into memory. In this section, you will learn how to view loaded modules and understand the items of information provided regarding those modules.
When you are debugging in Visual Studio 2022, the Debug | Windows menu contains the menus, as shown in Figure 5.6:
From the preceding menu, as shown in Figure 5.6, you can select Modules during a debugging session. This will load the Modules window, as shown in Figure 5.7:
As Figure 5.7 shows, the CH04_WeakReferences.exe
process runs in the clrhost AppDomain, and loads the following modules:
System.Private.CoreLib.dll
CH04_WeakReference...