[英]Breakpoint put in decompiled assembly from .Net Reflector is never hit while debugging in Visual Studio
首先,我創建了一個測試程序集HelloWorld.dll
,我想調試它並使用發布配置構建它。
namespace HelloWorld
{
public class HelloClass
{
public string SayHello(string name)
{
return "Hi " + name + "!";
}
}
}
然后我創建了標准的ASP.NET MVC項目並:
HelloWorld.dll
程序集 修改了HomeController的About
方法
public ActionResult About() { var testingClass = new HelloClass(); ViewBag.Message = testingClass.SayHello("John"); return View(); }
通過.NET Reflector對象瀏覽器反編譯HelloWorld程序集
~/Home/About
頁面 結果:Brekpoint從未被擊中。
當我去Debug -> Windows -> Modules
,似乎加載了HelloWorld.dll
程序集的符號:
那么,我做錯了什么?
編輯:我正在使用Visual Studio 2015 Update 1和RedGate Reflector 8.5
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.