Http://www.cnblogs.com/hehexiaoxia/archive/2013/01/08/2851531.html
. NET Framework 4.0 source code debugging Configuration
Source: http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx
This article will show you how to configure Visual Studio 2010 to execute the. NET Framework 4.0 source code Statement by statement.
Step 1: Download the source code
Address: http://referencesource.microsoft.com/netframework.aspx
Download the record with the product name. NET and version 4, 175 MB.
Step 2: Install the source code
Install "net_4.msi"
I installed it to: "D: \ refsrc \" to install source and symbols. It takes about 1 GB (Are you excited ?)
Step 3: Install Visual Studio 2010
Configure Visual Studio 2010:
1. OpenVisual Studio 2010
2. SlaveTools)Menu, selectOptions).
3. InOptions)In the dialog box, openDebugging(Debugging) nodeAnd selectGeneral)
-Disable "enable my code only (managed only)" "enable just my code (managed only )"
-Select "enable source server support" "enable source server support"
-Cancel "requires that the source file exactly match the original version" "require source files to exactly match the original version"
-Cancel "step over properties and operators (managed only )"
4. Select the symbol (symbols) under the debugging (debugging)
In the symbol File Location box, add the downloaded symbol location: "D: \ refsrc \ symbols"
Note: to add a symbolic path, click the folder icon symbol cache directory and enter:
"D: \ refsrc \ symbols \ cache"
Now you can press F11 (Statement by statement). Net source code.
Troubleshooting
If you do not see the symbol, try the following:
- Check whether your program is debugged under. NET Framework 4.0.
- Make sure it is not installed in \ Program Files \. If you have already installed it here, you can run visual studion 2010 as an administrator or change the cache directory to another writable directory.
- During runtime, right-click to call the stack. For some gray. NET functions, select "load symbol from" load symbols from "" symbol path "" symbol path ".
- If you encounter "no source available", click "browse to find source" and find the file you need in the source code directory. You may find it using file search.
Source: http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx
This article will show you how to configure Visual Studio 2010 to execute the. NET Framework 4.0 source code Statement by statement.
Step 1: Download the source code
Address: http://referencesource.microsoft.com/netframework.aspx
Download the record with the product name. NET and version 4, 175 MB.
Step 2: Install the source code
Install "net_4.msi"
I installed it to: "D: \ refsrc \" to install source and symbols. It takes about 1 GB (Are you excited ?)
Step 3: Install Visual Studio 2010
Configure Visual Studio 2010:
1. OpenVisual Studio 2010
2. SlaveTools)Menu, selectOptions).
3. InOptions)In the dialog box, openDebugging(Debugging) nodeAnd selectGeneral)
-Disable "enable my code only (managed only)" "enable just my code (managed only )"
-Select "enable source server support" "enable source server support"
-Cancel "requires that the source file exactly match the original version" "require source files to exactly match the original version"
-Cancel "step over properties and operators (managed only )"
4. Select the symbol (symbols) under the debugging (debugging)
In the symbol File Location box, add the downloaded symbol location: "D: \ refsrc \ symbols"
Note: to add a symbolic path, click the folder icon symbol cache directory and enter:
"D: \ refsrc \ symbols \ cache"
Now you can press F11 (Statement by statement). Net source code.
Troubleshooting
If you do not see the symbol, try the following:
- Check whether your program is debugged under. NET Framework 4.0.
- Make sure it is not installed in \ Program Files \. If you have already installed it here, you can run visual studion 2010 as an administrator or change the cache directory to another writable directory.
- During runtime, right-click to call the stack. For some gray. NET functions, select "load symbol from" load symbols from "" symbol path "" symbol path ".
- If you encounter "no source available", click "browse to find source" and find the file you need in the source code directory. You may find it using file search.