0

Possible Duplicate:
it is possible to Debug Global.asax?

I want to debug the HttpApplication.Start method in my Global.asax. Unfortunately, the debugger will rarely hit a the break point at the start of the method, even when I do a clean and rebuilt or iisrest? Is there a method to force this method to be rerun?

Community
  • 1
  • 1
Casebash
  • 114,675
  • 90
  • 247
  • 350

1 Answers1

2

Here is a brief explanation about Debugging Global.aspx.cs Application_Start() with ASP.Net Web Server within Visual Studio.

Another method is to force break by as shown below:

Protected void Application_Start(object sender, EventArgs e) 
{
    System.Diagnostics.Debugger.Break();            
}
sharmila
  • 1,493
  • 5
  • 23
  • 42