global.asax breakpoint not hit

后端 未结 6 1311
自闭症患者
自闭症患者 2021-01-04 05:39

I have some code in my ASP.NET app in C# that\'s in the Global.asax.cs code file. In the Application_Start, Session_Start and Ap

6条回答
  •  北海茫月
    2021-01-04 05:58

    As metioned in another answer, the Global.asax code will run before the debugger gets chance to attach. To get around that you can start debugging, then go into IIS and Stop/Start the Application which should then have the debugger pick up the restart.

提交回复
热议问题