Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
VS Debugger seems to hang when you start debugging
Article ID: 951336 - View products that this article applies to.
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Create a simple MFC application in Visual Studio 2003 / 2005/ 2008. Start debugging by pressing F5.
Visual Studio debugger takes a long time to start debugging the application. This gives an impression that Visual Studio has hung.
Invalid symbol path location, or a geographically distant location where symbols are stored, causing high network latency.
Check if the _NT_SYMBOL_PATH environment variable contains valid information.
In the Visual Studio IDE, goto Tools->Options->Debugging->Symbols->Symbol File (.pdb) locations. Check if you have valid path here.
If you do have a valid path in either of these locations, try removing these entries to see if that helps. If the problem goes away, then you may have a high network latency causing delayed load of symbols and slow debugger startup/response times.
When the debugger starts up, it tries to load the PDB symbol files for loaded modules. High network latency can cause Visual Studio to become unresponsive. A local symbol cache can be used to work around the problem.
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.
Article ID: 951336 - Last Review: April 4, 2008 - Revision: 1.1