VS 2015不断调试我发布的.cshtml而不是源代码 [英] VS 2015 Keeps Debugging My Published .cshtml and Not Source

查看:356
本文介绍了VS 2015不断调试我发布的.cshtml而不是源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚切换到VS2015.在我调试VS.html文件的VS 2013安装中,如果发布的代码和源代码不相同,它会跳过断点,或者会在源代码中显示断点.在我的VS 2015安装中,它似乎总是显示 发布文件中的断点.这与源文件和已发布文件之间的匹配状态无关.为了在VS 2015中获得VS 2013行为,我缺少什么设置?谢谢.

I just switched to VS 2015. In my VS 2013 install when I am debugging a .cshtml file it either skips the breakpoint if the published code and source isn't the same or it shows me the breakpoint in the source. In my VS 2015 install it seems to always show the breakpoint in the published file. This is regardless of the status of the match between the source and the published file. What setting am I missing to get the VS 2013 behavior in VS 2015? Thanks.

推荐答案

您好TheOneHofo,

Hi TheOneHofo,

所以您的意思是同一应用在两个VS版本中具有不同的调试结果,对吗?

So you mean that the same app has different debugging result in two VS versions, am I right?

对于Web脚本调试,请右键单击您的项目->属性-> Web,并确保已启用ASP.NET调试.

For Web script debugging, please right click your project->property->Web, and make sure that you have enabled the ASP.NET debugging.

请在您的VS中打开工具"->选项"->调试",并比较以下屏幕快照之类的选项.例如,也许您忘记了启用或禁用选项要求源文件以匹配原始版本".或其他.

Please open the TOOLS->Options->Debugging in your VS, and compare the options like the following screen shot. For example, maybe you forget to enable or disable the option "require the source file to match the original version" or others.

最好的问候,

Jack


这篇关于VS 2015不断调试我发布的.cshtml而不是源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆