附加程序调试在Visual Studio程序、Visual、Studio

2023-09-04 06:55:04 作者:曾经的那一抹记忆.

我托管在IIS上的应用程序,但应用起来,当我重新启动IIS很晚。所以我想它在应用程序启动的开头调试,但我不能附加一个过程,如果申请犯规开始。那么,什么是正确的方法来调试应用程序是主机上的IIS应用程序时,首先开始的?

I am hosting an application on IIS but application gets up very late when I restart IIS. So I want to debug it at the begining of the application start but I cannot attach a process if the application doesnt start. so what is the proper way to debug an application that is host on IIS when the application firstly begin ?

推荐答案

怎么样把一个 Debugger.Launch() Global.Application_Start