Procedure
Note that this feature is not supported in Visual Studio 2008 Express.
1) install Visual Studio 2008 QFE. This QFE only updates the DLL of the Visual Studio debugger to obtain the source code,
For more details, see the download page.
2) Run Visual Studio 2008 to expand Tools> Options> Debugging> General. If you are in the Visual Basic Profile environment
Run, you need to mark the lower left of the Options Dialog as "Show All Settings", and then continue (other configurations do not have this option ).
Set the following two settings:
Disable "Enable Just My Code" Settings
Enable "Enable Source Server Support" Settings
Your settings are shown below:
3) Next, select the "Symbols" Page and set the symbolic download URL and cache location. Set the following three configurations:
Set the location of the symbol file:Http://referencesource.microsoft.com/symbols
Set the cache location. Ensure that your account can read and write this location. A good suggestion is to set this path to open the "Search the above locations only when symbols are loaded manually" option.
As shown in
The settings are complete.
Debug the source code of the framework
In this example, we start with an empty C # Windows Application project, which can also work on VB, Web, or WPF projects. Create this project:
Set a breakpoint on Form_Load: