Breakpoint in ASP.NET MVC Razor view will not be hit. No symbols have been loaded for this document

拈花ヽ惹草 提交于 2019-12-05 02:13:20

Can't believe it guys... wasted almost 1 hour on this. I was trying to debug the wrong view in the wrong path.

I set a breakpoint in this view:

C:\ITVizion\VizionLogs\ITVizion.VizionLogs.WeeklyLogs.Web\Views\Error\ServerError.cshtml

but actually I was trying to debug this view:

C:\ITVizion\VizionLogs\ITVizion.VizionLogs.WeeklyLogs.Web\Views\Shared\Error.cshtml

After I placed a breakpoint in the correct view, although it showed the message about the breakpoint would not be hit, the Debugger actually hit the breakpoint during runtime! :D

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!