Click the Play button to view this streaming media demonstration.
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 calls that 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:
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.
- 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:
- 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.
- Quit Visual Studio .NET if it is open.
- 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.
- Start Visual Studio .NET.
- Press CTRL+ALT+L to open the Solution Explorer window.
- Right-click the solution, and then click Properties.
- Expand the Common Properties and the Debug Symbol Files nodes.
- In the Debug Symbol Files property page, type the following symbol server path: symsrv*symsrv.dll*c:\localcache*http://msdl.microsoft.com/download/symbolswhere 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.
- On the Debug menu, point to Windows, and then click Modules to verify that symbols are loaded for a particular module while the debugger is running. The Modules window states whether the symbol information has been loaded for the module.
- 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:
- In Control Panel, double-click System.
- On the Advanced tab, click Environment Variables.
- Under System Variables, click New, and then add a variable as "_NT_SYMBOL_PATH".
- Set the value of the variable to a symbol server path, for example:symsrv*symsrv.dll*c:\localcache*http://msdl.microsoft.com/download/symbols
รหัสบทความ: 319037 - การตรวจสอบครั้งสุดท้าย: 13 พ.ค. 2008 - ฉบับแก้ไข: 1