. NET Source code debugging

Source: Internet
Author: User

For the code in the. NET Framework, it's not fun to take a Reflector look, if you can debug it!

In fact, Microsoft is providing a set of SourceCode downloads:

Http://referencesource.microsoft.com/netframework.aspx

Download and run the installation file to install Source and symbols locally, there is nothing to say.

The key is the following configuration in Visual Studio 2010:

1. Running Visual Studio 2010

2. Select Options from the Tools menu

3. In the Options dialog box, select Debugging->general

Uncheck "Enable Just My Code (Managed only)"

Check "Enable Source server Support"

Uncheck "Require source files to exactly match the original version"

Optional:uncheck "Step over properties and operators (Managed only)"

4. Select Debugging->symbols

In the symbol file (. pdb) Locations: area, click on the "New" button to enter the Symbols directory you just installed (that is, after the newly added checkbox). \refsrc\symbols).

Set a directory for caching Symbols. Point ok!!

Well, now you can press F11 into the framework of sourcecode in your project, enjoy it!

If you encounter any problems, you can refer to the troubleshooting section in this article :

Http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx

Http://weblogs.asp.net/rajbk/setting-up-visual-studio-2010-to-step-into-microsoft-net-source-code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.