How do I collect the current call stacks of the Visual Studio process?
When the GUI locks up (hangs, freezes) in Visual Studio, an important piece of diagnostic information to collect is the set of call stacks from all the threads of the Visual Studio process. To save this information for a hung instance of Visual Studio, you can use a second instance of Visual Studio:
Start a second instance (a new window) of Visual Studio.
Close any open solutions in the new instance of Visual Studio.
Select Debug > Attach to Process.
Select the original hung instance of
devenv.exefrom the list of Available Processes.
Select Debug > Break All.
- Select Debug > Save Dump As.
- Change Save as type to Minidump (*.dmp). This will produce a much smaller file than Minidump with Heap, and the heap is usually not relevant for diagnosing freezes.
- Save the dump file. If submitting the file online, you can zip it to reduce the size.