Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Visual Studio to step into third party assemblies

When I'm debugging or even coding, it would be really uesful to examine third party assemblies but I can only see their metadata.

Given that tools like reflector can decompile assemblies, is there someway or some tool which would allow visual studio to do the same thing?

If I happen to have access to the PDB files for an assemblies, would placing them into my applications bin folder allow me to examine the assemblies content through visual studio?

like image 616
Kye Avatar asked Mar 20 '10 02:03

Kye


People also ask

How do I use step into in Visual Studio?

To start your app with the debugger attached, press F11 (Debug > Step Into). F11 is the Step Into command and advances the app execution one statement at a time. When you start the app with F11, the debugger breaks on the first statement that gets executed.

How do I Debug an external EXE in Visual Studio?

Just use File/Open Project/Solution, select EXE file and Open it. Then select Debug/Start debugging. The other option is to run the EXE first and then Select Debug/Attach to process.


1 Answers

If you have PDB's for a DLL you can certainly examine the DLL while debugging. Make sure that you have "Just My Code Disabled" and you should be good to go

Tools -> Options -> Debugging -> Uncheck "Just my Code"

There is one caveat though, the Visual Studio debugger will not decompile the assembly. It will read source file information from the PDB, if available, and suggest a location to look for the source file. If you do not have access to the source fie you will be forced to look at the machine disassembly (not decompiled IL) while debugging.

like image 112
JaredPar Avatar answered Oct 15 '22 16:10

JaredPar