c++ - Step Into (F11) 不进入 Visual Studio 2015 中的某些函数

标签 c++ visual-studio visual-studio-2015

Normal Estimation Using Integral Images 下载的程序.我想进入 computeFeature(输出)enter image description here

程序不会单步进入函数。既不按 F11 也不在函数定义内的某行设置断点。但是程序会进入下一条语句deinitCompute()

Why Visual Studio's debug mode Step Into (F11) sometimes doesn't enter inside some functions?中提到的方法不工作。 我的 Visual Studio 2015 选项设置如下所示。 enter image description here

Step into not working, but can force stepping after some asm steps中提到的方法也没有用。我的 Visual Studio 2015 客户端属性页设置如下所示。 enter image description here

Visual Studio 2012 - how to step into (F11) source code中提到的方法也没有用。 我的 Visual Studio 2015 中的 F11 没问题。 enter image description here

此问题可能会在另一台计算机上重复出现。 我怎样才能让 Visual Studio 直接进入函数 computeFeature(输出)?

这里是源代码 Normal Estimation Using Integral Images 和关联测试数据文件 table_scene_mug_stereo_textured.pcd .

我在 Windows 10 Enterprise 上使用 Microsoft Visual Studio Enterprise 2015,版本 14.0.23107.0 D 14REL。

最佳答案

VS不单步执行函数的一些原因:
1) 函数没有调试信息。
在这种情况下,您可能需要设置 VS 以进入汇编语言。

2) 包含该函数的文件的调试信息已损坏。
在 Debug模式下重新编译文件。

3) 函数在库中,没有调试信息。

4) 该函数是操作系统函数,没有调试信息。

5) 您正在以 Release模式运行。

6) 该函数无代码,已被淘汰。
这可能会发生,具体取决于您的优化设置。

7) 编译器将您的函数转换为“内联”代码(通过优化)。

关于c++ - Step Into (F11) 不进入 Visual Studio 2015 中的某些函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46650419/

相关文章:

visual-studio - Visual Studio 2012 在包含远程 CSS 文件时说 'Unable to edit'

c++ - 想要在 istream C++ 的行尾读取重要的 double 值

c# - 无法附加到 SQL Server 以调试 SQLCLR 存储过程

c++ - 为什么 MSVC 在执行此位测试之前会发出无用的 MOVSX?

c - "cannot open source file"- 包含 header ,Visual Studio 2015

iis - Visual Studio 2015 无法启动 IIS Express

c++ - C++-如果两个库使用相同的源代码进行构建会发生什么

c++ - C++ 中的迭代器

c++ - 插件的初始化程序问题。一个测试

asp.net - IIS 10 Express 性能问题