Friday, July 11, 2008

Debugging .NET Framework Source Code

Since the releasing of Source Code for the .NET Framework Libraries, you are now able to debug the .NET Framework source code.

Steps:

1. Open Visual Studio 2008 > Tools > Options > Debugging > General > uncheck "Enable Just My Code" > check "Enable Source Server Support"

2. Go to Tools > Options > Debugging > Symbols > add this symbol file location http://referencesource.microsoft.com/symbols > specify the cache location > check the "Search the above locations only when symbols are loaded manually" option.

3. Fire up debugging > right click the code line you wanted to debug in the call stack > click Load Symbols > click F11 > now you can step into the .NET Framework source code and debug .

Reference:

Configuring Visual Studio to Debug .NET Framework Source Code

blog comments powered by Disqus