Framework source code debugging. NET Framework 4.0 source code debugging Configuration

Source: Internet
Author: User
Tags visual studio 2010

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.

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.