Opening classes in Visual Studio
Published 17 September 2018
Switching to your source code from ANTS Memory Profiler
To identify classes with source code, you must ensure that the .pdb file is in the same directory as the application. For more information, see Troubleshooting PDB problems.
You can switch to source code from the Class List, the Instance Categorizer, the Instance List, and the Instance Retention Graph.
Classes with source code are shown in bold. You can use the find bar on the Class List to search for your class's namespace.
Right-click a class with source code to show the context menu.
To open only the source code associated with that class, select Open with new instance of Visual Studio 20xx.
It is often more useful to open the source code inside its solution. To do this, you need to already have opened the solution in Visual Studio, before opening the context menu. On the context menu, select Open with (Solution Name) - Microsoft Visual Studio (Visual Studio 20xx).
- If the path to the source code in the .pdb file is invalid, the class is still shown in bold, but the context menu does not display the Visual Studio options. Recompile the application on the computer you are using to profile it.
- If the solution was opened with elevated privileges (Visual Studio is running as administrator), the option for opening the source code inside the solution might not be shown. Restart Visual Studio under the same credentials as ANTS Memory Profiler.