Use ASP. net mvc source code to debug your application

Source: Internet
Author: User

I wrote a blog post: Use the source code of. Net framework4.0 to debug your application. That articleArticleHow to use. Net framework4.0Source codeHelp you debug applicationsProgram, That is, entering the. NET framework4.0 SourceCodePerform one-step debugging. Due to project requirements, I recently learned Asp.net MVC. Yesterday, I encountered the issue of tangle between viewdata and tempdata. It is strongly recommended that you visit the source code of ASP. net mvc. Therefore, when I think about how to debug the ASP. NET MVC program, it is a very good way to step into the source code of ASP. NET MVC.

Therefore, you can use the source code of. Net framework4.0 to debug your application. This article also shows a blog post stepping into ASP. net mvc source code recommended by scottgu. How to configure vs2010. Next I will introduce how to configure vs2010 to implement single-step debugging with ASP. NET MVC source code.

1. Tools-Option-debugging-General. Follow the steps in the change box.

2. Download symbols and Source

Select all modules and unless excluded. You can download all the updated files to the symbol server.

Select only specified modules. You can only download Asp.net MVC (or add other modules ).

You just want to debug Asp.net MVC. Select only specified modules and click specified modules under it. Add system. Web. MVC, for example:

Click OK twice. The following figure shows how to download the symbol in vs2010. This takes some time to attach.

After the download is complete, let's see how to debug tempdata in a single step.

Before executing the action, possiblyloadtempdata () is executed ();

Then execute tempdata ["text"] = "AAA ";

Assign values to tempdata ["text:

 

Run

For more information, configure vs2010.

Summary:This article explains how to configure vs2010 and use ASP. net mvc source code to help you debug applications.

Related Article

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.