Learn to debug our MVC framework code with reflector

Source: Internet
Author: User
Tags reflector

We know that there are usually two debugging. NET programs, the first one is Ilspy, or one is reflector, and these two small anti-compilation software are the one we have in our study of the underlying code.

Sharp Small Knife ~ ~ ~, such as you see the Ilspy such interface diagram:

But what!!! Used Ilspy students probably know that this hair software is not debugging Web code ... You can only debug a program such as a console with PDB symbols ... Tragedy!!!

But Bones Jing we want to learn how MVC can not debug the Web code it? This is absolutely not ... There is always a way.

One: Download Reflector VS Plugin

Then how to debug it? We can download a reflector vs plugin and I can take you to the top of NuGet to look for it ... It will definitely make your eyes shine.

After you find it, you can click Download, and when you're done, vs will prompt you to reboot, like this:

When I restart again, you can see the menu above a reflector item, is not good hanging look??? But don't worry first, we're going to mister into a few DLL PDB files, with a

This hanging hair, we can debug these DLLs ... But the debugging of course is a large part of the oh ...

But you have to check which debug, these must be to see your project ~ ~ ~ you want to debug which, you generate which ... is not very simple, then we click on the Continue button,

After waiting for the build to be ready, we can click on a class, for example I want to see the source code of the Controller class ... such as the following:

OK, now the Controller class source code is out, and then I am ready to debug the controller's entry function "BeginExecute", see if can break down, hehe ~ ~ ~

Learn to debug our MVC framework code with reflector

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.