Debug your application with asp.net MVC source code

Source: Internet
Author: User
Keywords debugging source code application nbsp;
Tags .net application asp asp.net blog code configure debug

Previously wrote a blog: Use the. NET Framework4.0 source code to debug your application. The article teaches you how to use the. NET Framework4.0 source code to help you debug your application, which is to step into the. NET Framework4.0. Recently learned ASP.net MVC due to project needs. Yesterday I met ViewData and tempdata the difference between them so I tangled up the problem. Some friends strongly suggest that I go to see the source code of ASP.net mvc. So, I think how to debug asp.net mvc process, there is no understanding of the place, stepping into the asp.net MVC source code, is a very good way.

So, using the. NET Framework4.0 source code to debug your application this article, and see Daniel ScottGu recommended a blog stepping into asp.net MVC source code. The implementation of how to configure VS2010 to achieve this requirement. Next I will explain how to configure VS2010 to implement a combination of ASP.net MVC source code for Single-step debugging.

1, Tools-option–debugging-general, according to the following figure to modify my box up the place.

2. Download symbols and source

Select all modules,unless excluded, and you can download all the updated files on the symbol server.

Select only specified modules, you can download only asp.net mvc (or add other modules).

How do you just want to debug asp.net mvc. Select only specified modules, click the specified modules below it. Add a SYSTEM.WEB.MVC, as shown below:

Click two times OK. The following figure appears, vs2010 begins downloading symbol. This needs to be boarded up for some time.

such as download complete, we next, how to step through the debugging TempData.

The Possiblyloadtempdata () is executed before the action is executed;

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

Assign value to tempdata["text":

Execute after view is displayed

To learn more, configure your own VS2010 bar.

Summary: This article teaches you to configure VS2010, using the asp.net MVC source code to help you debug your application.

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.