[英]I can't set breakpoint in razor view
I know it's possible to set breakpoints in a MVC Razor view but something got wrong and it's not working anymore..我知道可以在 MVC Razor 视图中设置断点,但是出了点问题,它不再工作了..
I tried to restart visual studio 2013 and to change some options of Debugging.我尝试重新启动 Visual Studio 2013 并更改调试的一些选项。 Have you got any suggestion?
你有什么建议吗?
Thanks to Vladimirs I could find a solution. 感谢弗拉基米尔,我可以找到解决方案。
I had to Clean and Rebuild the whole solution. 我不得不清理并重建整个解决方案。 I tried a simple rebuild before but it didn't worked.
我之前尝试过一次简单的重建,但没有奏效。
而不是在 Visual Studio 中设置断点,而是在你的 razor 页面中编写这行代码:
@System.Diagnostic.Debugger.Break()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.