几何尺寸与公差论坛

 找回密码
 注册
查看: 1546|回复: 2

混合模式应用程序中的属性求值

[复制链接]
发表于 2008-12-24 19:26:43 | 显示全部楼层 |阅读模式
混合模式应用程序中的属性求值

在混合模式应用程序中,调试器执行的属性求值是一个资源消耗很大的操作。因此,调试操作(如单步执行)可能会很慢。有关更多信息,请参见单步执行。如果混合模式调试的性能很低,您可能希望在调试器窗口中关闭属性求值。

说明:显示的对话框和菜单命令可能会与“帮助”中的描述不同,具体取决于您的当前设置或版本。若要更改设置,请在“工具”菜单上选择“导入和导出设置”。有关更多信息,请参见 Visual Studio 设置


关闭属性求值


  • 从“工具Tools”菜单中选择“选项Options”。

  • 在“选项Options”对话框中,打开“调试Debugging”文件夹并选择“常规General”类别。

  • 清除“启用属性求值和其他隐式函数调用”复选框。Uncheck "Enable property evaluation and other implicit function calls"

由于本机调用堆栈和托管调用堆栈不同,因此调试器不能总是为混合代码提供完整的调用堆栈。当本机代码调用托管代码时,您可能会注意到某些差异。有关详细信息,请参见“调用堆栈”窗口中的混合代码与丢失信息
 楼主| 发表于 2008-12-24 19:31:12 | 显示全部楼层

回复: 混合模式应用程序中的属性求值

禁用“仅我的代码”调试
启用或禁用“仅我的代码”调试


  • 在“工具”菜单上选择“选项”。

  • 在“选项”对话框中,打开“调试”节点,然后选择“常规”。

  • 清除“启用仅我的代码”。

 楼主| 发表于 2008-12-24 19:43:49 | 显示全部楼层

回复: 混合模式应用程序中的属性求值

Hi Flora,

It sounds like your Find_Cycles.exe is not being built with pdb data, or you are launching it from a different directory from where the PDB is stored.

You can solve the first problem by making sure to build the Debug configuration (should be on the build toolbar, or you can pick it from the Build | Configuration Manager menu option)

If you are already building the debug configuration (or want to build some other configuration) and it is still not working, make sure that your project is generating PDB output.

For C++, this is under General options for the project. You need to check both the C/C++ and linker subcategories.

If that still doesn't work, or you are sure that a PDB file is being generated, it may be that the PDB file is not found in the symbol path.

Go to Tools | Options, and pick the Debugging category on the left. Then pick the Symbols subcategory. In the page that appears to the right, make sure to add where your PDB file is generated to the list of locations for symbols.

Hope that helps.

- Rich
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 19:30 , Processed in 0.036661 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表