Resharper debugging decompiled third party dll

Is there a way to debug in a decompiled dll using Resharper, and if so, how do you do it?

For example, I'm trying to debug System.Web.Http.ApiController , where I decompiled and can see the source code.

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

+52
debugging resharper
Mar 13 '12 at 11:12
source share
7 answers

As far as I know, it is not possible to debug the decompiled .net source code using Resharper (up to version v6.1)

However , this article explains how you can debug a .net source with Visual Studio 2010 — if you need instructions for a different version of VS, just use the “Other Versions” link at the top of the page.

+7
Mar 13 '12 at 15:05
source share

Yes you can with Resharper 9.0

(not sure for previous versions).

Go to "Resharper"> "Windows"> "Assembly Browser"

  • Add the assembly there with the first button on the left (with + on it)
  • Then right-click on it and select "Generate Pdb ..." (wait until this is done)
  • Now you can crack the code.

Please note, however, as Jens said, this is likely to violate the terms of the license

+42
Sep 25 '15 at 18:16
source share

Debugging tools are provided in dotPeek 1.2, and here is a good article describing how to configure the character 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 .

+15
Apr 18 '14 at 19:38
source share

No, this is not possible with only Visual Studio and ReSharper, but there is another product that can help you, .NET Reflector .

The VSPro edition has "Debug builds using the Visual Studio debugger, even if you don’t have a source function," which allows you to create .pdb files and decompiled source code for already built .NET assemblies.

From experience he had some problems with some builds, but I can't remember why it was, so this may or may not help you.

With ReSharper, you can look at the decompiled source code from assemblies, much like Reflector creates a decompiled source, but you cannot debug code with these source files using ReSharper.

+10
Mar 13 2018-12-12T00:
source share

Select the assembly in the "Assembly Explorer" window and click "Export to Project" on the toolbar or select "Export to Project" in the context menu.

More here

In addition, check this configuration on the debugging options main page (Tools → Options → Debugging → General):

Uncheck "Include only my code"

Uncheck the "Enable .NET Framework Initial Step"

Check the box next to "Enable server support."

Uncheck "Require source files to match source version

+7
Feb 16 '16 at 2:04 on
source share

[Full disclosure - I'm an employee of Telerik] With the latest version of Telerik JustCode, you can debug decompiled code without leaving Visual Studio. For more information, you can read my blog post by posting it here .

+6
Jun 19 '13 at 12:55 on
source share

You will need to have the corresponding *.pdb files to enter the code.

Otherwise, it can help decompile the binary, for example. Telerik is freely available by JustDecompile .

But you should be aware that this may violate the license agreements of a third-party provider.

+1
Mar 13 2018-12-12T00:
source share



All Articles