Can't break in global.asax / Application_Start

后端 未结 9 1309
名媛妹妹
名媛妹妹 2021-02-01 16:49

I got a break point on the first line of Application_Start(), but Visual Studio wont break on it.

Visual Studio have attached itself to the IIS working proc

9条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 17:45

    Place this line in your Application_Start().

    Debugger.Break();
    

    This will present you with a dialog which will allow you to select a debugger. You might need to restart the application pool.

提交回复
热议问题