CodeAttest
CodeAttest, Software testing, Quality assurance, Web Service Enhancements, VS Team System, Indigo, upcoming releases from Microsoft and anything else I find interesting to be shared.

January 23, 2008

.NET Source Code Debugging Tips

John Robbins is the ultimate debugging hero for me.

Read to what John Robbins says about the new released .NET Framework Source Code:

  1. If you've been downloading your symbols with the Microsoft Symbol Server, make sure to delete your cache directory before you start downloading from the new symbol location.
  2. Shawn says you'll want to check the "Search the above locations only when symbols are loaded manually" in the Options dialog, Debugging, Symbols node. Personally, I think it's much better to leave that unchecked so that you get the symbols and source downloaded automatically. Yes, there will be some slowdowns on the download, but by getting the symbols and source every time you access the item, you'll fill up the cache quicker.
  3. If you're having some trouble getting everything to work, turn on the source server diagnostic messages in the Options dialog, Debugging, General node:


Also, as you are loading downloading source files by double clicking on them in the call stack window, you can see the path reference location in the status bar.

  1. To get both the new Reference Symbol Server and Microsoft Symbol Server set in your _NT_SYMBOL_PATH environment variable to the following:
    UPDATE: This is the correct syntax
    SRV*c:\symbols*http://referencesource.microsoft.com/symbols;
    SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
  2. For you advanced hackers out there, I tried like crazy to get SYMCHK and PDBSTR to work for pre-downloading and bulk source extraction working, but with no luck at all. It appears that the WinDBG tools don't have support for source servers that use http downloads, but the QFE added that support to Visual Studio 2008. (See my article if you don't know what I'm talking about.)

Read original post.

Labels: , ,


# posted by Martin Kulov @ 1:48 AM




This page is powered by Blogger. Isn't yours?

 




RSS Aggregate this blog


Communities to Communities 2008

DevReach - The Premier Conference for Microsoft Technologies in Bulgaria



Bulgarian Association of Software Developers

SofiaDev .NET User Group

International Association of Software Architects



Microsoft Most Valuable Professional

Microsoft Certified Trainer

Microsoft Certified Professional Developer

Microsoft Certified Technology Specialist

Microsoft Certified Solution Developer

Microsoft Certified Application Developer

View Martin Kulov's profile on LinkedIn



Recent posts




History




 
Copyright © 2004-2007 CodeAttest Ltd. All Rights Reserved.