No symbols loaded solution

Source: Internet
Author: User
Tags knowledge base

How to use a symbol server with the Visual Studio. NET Debugger

Http://support.microsoft.com/default.aspx? SCID = KB; en-US; 319037

This step-by-step article describes how to use the Visual Studio. Net debugger with a symbol server to load symbols from the Microsoft symbol server.

Click the play button to view this streaming media demonstration.

Http://support.microsoft.com/servicedesks/ShowMeHow/319037.asx

You must have symbol information when you debug applications that may stop responding (hang or crash ). symbol files provide a footprint of the functions that are contained in executable files and dynamic-Link Libraries (DLLs ). additionally, symbol files can present a roadmap of the function callthat lead to the point of failure. for example, you must have the symbols when you dump call stacks inside a debugger.

For more information about a Microsoft symbol server that contains symbol files for Microsoft operating system components and other Microsoft products, click the following article number to view the article in the Microsoft Knowledge Base:
311503 (http://support.microsoft.com/kb/311503/) use the Microsoft symbol server to obtain debug symbol files
Note the Microsoft symbol server in article 311503 has not been updated to include the symbols for the Microsoft. net Framework. therefore, these symbol files are not loaded. microsoft is working to make. net Framework symbols available on a public symbol server.

Additionally, Microsoft Product Support Services has not tested and does not support the use of Microsoft symbol server with Visual Studio. NET. This article is only provided as information because of customer inquiries.

Back to the top
Update the debugging files

1. Download and then install the latest debugging tools for Windows kit. To download the latest debugging tools for Windows kit, visit the following Microsoft Web site:
Http://www.microsoft.com/whdc/devtools/ddk/default.mspx (http://www.microsoft.com/whdc/devtools/ddk/default.mspx)
2. Locate the symsrv. dll file in the/program files/debugging tools for Windows folder or the C:/windbg folder.

Note because debugging tools may be installed in a different folder, search on your hard disk for symsrv. dll if the file is not located in these folders.
3. Quit Visual Studio. NET if it is open.
4. copy symsrv. DLL to the C:/program files/Microsoft Visual Studio. net/common7/ide folder. the next time that you start Visual Studio. net, or you start Visual Studio. net, you can use the symsrv. DLL file to find symbol servers that you specify.

Back to the top
Specify the path to the symbol Server

1. Start Visual Studio. NET.
2. Press CTRL + ALT + L to open the Solution Explorer window.
3. Right-click the solution, and then click Properties.
4. Expand the common properties and the debug symbol files nodes.
5. In the debug symbol files property page, type the following symbol server path:
Symsrv * symsrv. dll * C:/localcache * http://msdl.microsoft.com/download/symbols
Where C:/localcache is the local folder where the symbols are downloaded, and where the "HTTP" address is the address to the Microsoft symbol server that contains symbols for the operating system and other Microsoft products.

Note because the symbols are downloaded from the internet, the Visual Studio. NET debugger may debug slowly the first time because the debugger must download all of the required symbol files.
6. on the Debug menu, point to Windows, and then click modules to verify that symbols are loaded for a special module while the debugger is running. the modules window states whether the symbol information has been loaded for the module.
7. If you want to set the symbol server path for all solutions and projects, you can set a global environment variable in Control Panel. To do this, follow these steps:
1. In control panel, double-click system.
2. on the Advanced tab, click environment variables.
3. Under system variables, click New, and then add a variable as "_ nt_symbol_path ".
4. Set the value of the variable to a symbol server path, for example:
Symsrv * symsrv. dll * C:/localcache * http://msdl.microsoft.com/download/symbols

Note the Visual Studio. net debugger does not find symbols for managed components if you set the symbol server path in Solution Properties. if you have symbols for managed components, you must use the _ nt_symbol_path environment variable for the debugger to recognize symbol files of a managed component on a symbol server.
Back to the top

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.