Welcome to MSDN Blogs Sign in | Join | Help

How to obtain debug information from a hang / frozen application

A while ago I blogged on how to obtain a crash dump using Visual Studio. You can use similar technique to obtain debug information from a hung or frozen application. You can use Visual Studio to obtain information on another instance of VS that is not responding and include it in the bug report at http://connect.microsoft.com . Here is how to do it:

1. Start Visual Studio and repro the hang.
2. Start another instance of VS.
3. In the second instance click Tools | Attach to Process...
4. In the list of processes locate devenv.exe.
5. Click Select... and explicitly choose 'Native' and 'Managed' code.
6. Click OK and OK to close Select dialog and Attach to Process dialog.
7. Click Debug | Break All.
8. Click Debug | Save Dump As... to save the debug information.
9. File issue at MSDN Feedback site and attach crash dump file to the report.  

If VS is not frozen but rather takes a lot of time to process something, you can obtain information where VS is spending time and provide it to us with the bug report:

7. Click Debug | Break All.
8. Click Debug | Save Dump As... to save the debug information.
9. Click Debug | Run to continue execution.  

Repeat steps 7-9 a few times and save dumps in different files. Attach those files to the bug report.
 

Published Wednesday, September 19, 2007 12:14 PM by Mikhail Arkhipov (MSFT)

Comments

# MSDN Blog Postings » How to obtain debug information from a hang / frozen application

# Interesting Finds: September 20

Friday, September 21, 2007 10:19 AM by Jason Haley

# Interesting Finds: September 20

Friday, September 21, 2007 10:19 AM by Jason Haley

# How to give a crash or hang dump for Visual Web Developer Express

1. Generate dump file for hanged application: Option1 : If you are using vista, you can simple open task

Monday, January 07, 2008 11:08 AM by xqiu's blog for his Microsoft career

# How to give a crash or hang dump for Visual Web Developer Express

1. Generate dump file for hanged application: Option1 : If you are using vista, you can simple open task

Monday, January 07, 2008 11:49 AM by Noticias externas
New Comments to this post are disabled
 
Page view tracker