visual-studiodebuggingiisdecompiling.net-reflector

Breakpoint put in decompiled assembly from .Net Reflector is never hit while debugging in Visual Studio


First, I created a testing assembly HelloWorld.dll which I want to debug and built it with release configuration.

namespace HelloWorld
{
    public class HelloClass
    {
        public string SayHello(string name)
        {
            return "Hi " + name + "!";
        }
    }
}

Then I created standart ASP.NET MVC project and:

Result: Brekpoint is never hit.

When I go to Debug -> Windows -> Modules it seems that symbols for HelloWorld.dll assembly was loaded: enter image description here

So, what am I doing wrong?

EDIT: I am using Visual Studio 2015 Update 1 and RedGate Reflector 8.5


Solution

  • After hours and hours of research and contacting RedGate support it seems to be a bug in their software.

    Workarounds:

    1. Use Visual Studio 2013, where it works as expected
    2. In VS 2015 go to .NET Reflector -> Generate PDBs and select C# version to v4.5. Reflector has some problems with C# version v4.6 Choose Assemblies to Debug