简体   繁体   English

如何在 C++ Builder 中禁用“使用 debug.dcus”

[英]How to disable “Use debug .dcus” in C++ Builder

My debugger steps through Delphi's VCL code when I press F7.当我按下 F7 时,我的调试器会逐步执行 Delphi 的 VCL 代码。 Under the Delphi compiler I need to disable "Use debug.dcus" (I have it off).在 Delphi 编译器下,我需要禁用“使用 debug.dcus”(我已关闭)。 How is that option called under C++ Builder?在 C++ Builder 下如何调用该选项?

http://docwiki.embarcadero.com/RADStudio/Sydney/en/Compilinghttp://docwiki.embarcadero.com/RADStudio/Sydney/en/Compiling

Project > Options > Building > Delphi Compiler > Compiling项目 > 选项 > 构建 > Delphi 编译器 > 编译

Use debug.dcus使用 debug.dcus

The debug DCUs contain debug information and are built with stack frames.调试 DCU 包含调试信息并使用堆栈帧构建。 When this option is checked, the compiler adds the debug DCU path to the search paths specified in Debug Source Path on the Embarcadero Debuggers page.选中此选项时,编译器会将调试 DCU 路径添加到 Embarcadero Debuggers 页面上的 Debug Source Path 中指定的搜索路径中。

With a simple C++Builder VCL app with only a button onClick event handler (Button1->Caption = "Clicked";) trace into (F7) into the Caption assignment will only get you to ustring.cpp source code with the "use debug.dcus" set to false and then come back to your C++ source code.使用一个简单的 C++Builder VCL 应用程序,只有一个按钮 onClick 事件处理程序 (Button1->Caption = "Clicked";) 跟踪到 (F7) 到 Caption 分配只会让你到 ustring.cpp 源代码与“使用debug.dcus" 设置为 false,然后返回到您的 C++ 源代码。

If you "use debug.dcus" set to true, trace into (F7) the Caption assignment will get you to ustring.cpp source code and if you keep tracing into F7 the debugger will continue into Pascal source code in the RTL.如果您将“使用 debug.dcus”设置为 true,则跟踪到 (F7),标题分配将使您转到 ustring.cpp 源代码,如果您继续跟踪到 F7,调试器将继续跟踪 RTL 中的 Pascal 源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM