0
可能重複:
it is possible to Debug Global.asax?如何在ASP.net中調試HttpApplication.Start方法?
我要調試的HttpApplication.Start方法在我的Global.asax。不幸的是,調試器很少會在方法開始時達到一箇中斷點,甚至當我進行乾淨的重建或iisrest?是否有強制重新運行此方法的方法?
可能重複:
it is possible to Debug Global.asax?如何在ASP.net中調試HttpApplication.Start方法?
我要調試的HttpApplication.Start方法在我的Global.asax。不幸的是,調試器很少會在方法開始時達到一箇中斷點,甚至當我進行乾淨的重建或iisrest?是否有強制重新運行此方法的方法?
Here是關於使用Visual Studio中的ASP.Net Web Server調試Global.aspx.cs Application_Start()
的簡要說明。
的另一種方法是迫使由如下所示破:
Protected void Application_Start(object sender, EventArgs e)
{
System.Diagnostics.Debugger.Break();
}