Use VS to Debug. NET Source code

Source: Internet
Author: User

debugging using the. NET Framework Library Reference source

you may want to know how to debug using the. NET Framework reference source. In the following example, you will see a tool that I call the public Console.WriteLine method. From there, the WriteLine method invokes several dedicated management APIs and ends with one or more platform invoke calls. You can view each call in the Call Stack window. You can view each call frame, whether it's a source for that frame, or any native that is available. This is very useful!

This experience applies to both 32-bit and 64-bit applications on x86 and x64 machines. when running on a x86 or x64 machine, you can also remotely debug an application running on an arm tablet. I can imagine you might be looking to give the last scene a try.

This experience also applies to all. NET Framework application types, including asp.net,wpf,windows forms, consoles, and Windows store applications. We call the experience of seeing the. NET Framework Library source code in Visual Studio, ". NET Framework source code stepping". As you might guess, you can use all the step commands that you use to enter and exit the. NET framework code, such as F11,F10 and SHIFT + F11. This is easy to set up. I'll explain .

enabling the. NET framework source code in Visual Studio 2012

We'll first show you how to enable source and symbol on-demand downloads. If you have consistent Internet access you need to make some configuration changes in Visual Studio 2012.

first, choose options and Settings from the Visual Studio Debug menu ... Open the Options dialog box, expand the Debugging node, and then select General Options. Set the following:

    • Clear Enable My Code check box.
    • selected enable the. NET Framework source code stepping .
    • Clear transitions to attributes and operators (managed only)
    • selected Enable source server support .
    • Clear require the source file to match the original version exactly .

Next, set the following on the symbols page of the debug node:

    • Add a pointer to Http://referencesource.microsoft.com/symbols the new symbol file location

You can now select OK and start using the. NET Framework source Footstep as part of the development process.

to enable offline feeds in Visual Studio 2012

Sometimes you are not connected to the Internet, for example, when traveling. In addition, some people prefer to download the cost once, and then think about it. We have covered these two cases.

you can download The source code and symbols for the. NET Framework 4.5 as an MSI installer. After you install them to a specific location on your local disk or network, you need to provide the different symbol file locations that you specified in the previous section. I have provided an example below.

Once you have installed and configured the offline reference source package (as shown above) in Visual Studio 2012, you can start entering the. NET Framework Library Source code.

Use VS to Debug. 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.