visual studio 调试的时候如果没有命中断点,可能是启动的时候就出错了。

在文件Global.asax中,

  protected void Application_Error(object sender, EventArgs e)
        {

增加断点,检查启动时的错误,修复错误后可能就能命中断点了。

 

相关文章: