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:
HelloWorld.dll
assemblyModified HomeController's About
method
public ActionResult About()
{
var testingClass = new HelloClass();
ViewBag.Message = testingClass.SayHello("John");
return View();
}
Via .NET Reflector Object Browser decompiled HelloWorld assembly
~/Home/About
pageResult: Brekpoint is never hit.
When I go to Debug -> Windows -> Modules
it seems that symbols for HelloWorld.dll
assembly was loaded:
So, what am I doing wrong?
EDIT: I am using Visual Studio 2015 Update 1 and RedGate Reflector 8.5
After hours and hours of research and contacting RedGate support it seems to be a bug in their software.
Workarounds: