Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper debugging a third party decompiled dll

Is there a way to debug into a decompiled dll using Resharper and if so how do you do this?

For example I am trying to debug into System.Web.Http.ApiController where I have decompiled and can see the source.

I have set a breakpoint but when I run the application it does not break into decompiled breakpoint when debugging.

like image 551
Noel Avatar asked Mar 13 '12 11:03

Noel


2 Answers

Yes, you can with Resharper 9.0

(not sure for previous versions).

Go to menu "Resharper" > "Windows" > "Assembly Explorer"

  • Add an assembly there with the first button on the left (with a + on it)
  • Then right click on it and choose "Generate Pdb..." (wait until it's done)
  • now you're able to break in the code.

Note however as Jens told, it will probably break license terms

like image 93
Fab Avatar answered Sep 22 '22 03:09

Fab


Debugging facilities are introduced in dotPeek 1.2 and here is a nice post describing how to configure symbol server and dotPeek 1.2 to debug decompiled code from VisualStudio: http://blog.jetbrains.com/dotnet/2014/04/09/introducing-dotpeek-1-2-early-access-program.

like image 30
Shkredov S. Avatar answered Sep 20 '22 03:09

Shkredov S.