是否有Visual Studio 2015调试步骤跳过? [英] Is there Visual Studio 2015 Debugging step skipping?

查看:208
本文介绍了是否有Visual Studio 2015调试步骤跳过?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了新版本的Visual Studio社区2015。



打开旧的Visual Studio 2010项目。他们编译好了
然后当我需要调试它们时,我发现了一些奇怪的东西。



当我尝试Step Over(F10)时,只是跳过代码行,在那里。



例如,我开始在第33行调试,然后F10将我送到第43行。 p>

如何?



可以配置。

解决方案

此行为与调试优化代码一致。



您可以通过转到工具 - > ILDasm来验证生成的代码,加载您的可执行文件并检查该功能。或者,在Debugger的Debugger - > Windows - > Disassembly(或单击Alt + 8)的断点处。



这可能是2015年的一个新功能,因为我的2013没有优化任务/测试...


I installed the new version of Visual Studio Community 2015.

Opened old Visual Studio 2010 projects. They compiled okay. Then when I needed to debug them I found out something strange.

When I try to Step Over(F10) just skips lines of code like they weren't there.

For example I start debugging in line 33, then F10 sends me right to line 43.

How is that?

And is it configurable.

解决方案

This behavior is consistent with debugging optimized code.

You can verify what code was generated by going to Tools -> ILDasm, loading your executable and inspecting that function. Or, while on a breakpoint in the Debugger, Debug -> Windows -> Disassembly (or click Alt+8).

This may be a new feature in 2015, as my 2013 does not optimize that assignment/test out...

这篇关于是否有Visual Studio 2015调试步骤跳过?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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