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.