C # debugging DLLs with Dotpeek

Source: Internet
Author: User

I think the programming brothers have to quote someone else's code, even if it is. The basic library of the framework, but also often refer to other people's DLLs, but other people throw some exceptions inside, and do not know what is going on, if this time can be in someone else's code debugging that much good ah. Well, not suspense, today I will give you a start from beginning to end how to debug someone else's DLL.

1. First ReSharper (ReSharper is a jetbrains company's famous code generation tool that helps Microsoft Visual studio to become a better IDE. I think most of the students in the program have used it. He has an ancillary product called DotPeek. Dotpeek is an anti-compilation tool that also provides a PDB service.

* can go to the official download trial.

Installation process:

2. Open Dotpeek64.exe If the menu is not available to search by itself

The following is to test the GAC

3. Open VS, create a new project, and start configuring

usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceconsoleapplication1{classProgram {Static voidMain (string[] args) {System.Console.WriteLine ("Output Text"); }    }}

This System.Console.WriteLine we want to follow up to see, how to do it?

Configuration: Tools-"Options-" debug-"symbol

Break point 1 ways

The second kind, directly decompile the code in

And then just play. I am a programmer! [Email protected] If there is no understanding of the place. or leave a message.

C # debugging DLLs with Dotpeek

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.