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