gpt4 book ai didi

Delphi XE7 : Debug points not appearing, 调试时未命中断点并且 CPU 窗口打开

转载 作者:行者123 更新时间:2023-12-03 15:55:48 25 4
gpt4 key购买 nike

在构建我的代码时,我看不到页面中的调试点。只有构建时打开的页面显示调试点。此外,断点不会被命中,并且默认情况下设置调试的 CPU 窗口会打开。我搜索了相同内容,并在 Embarcadero 页面 ( http://docwiki.embarcadero.com/RADStudio/Tokyo/en/CPU_Windows_Index ) 上找到了以下声明:

The CPU window also opens automatically whenever program execution stops at a location for which source code is unavailable. For example, the debugger cannot open the source file if you link a DLL (Windows) built with debug information but do not include its source file in your project, or if you place the source file in a directory not specified in your project.

我还尝试了以下操作:

  • 当我创建一个新项目时,放置一个断点,它命中(没有CPU在这种情况下,窗口会打开)。
  • 当我修改原始代码时(例如仅放置 ShowMessage('Hello World');),其中调试点不存在命中,出现消息对话框,但调试未命中。
  • 我卸载并重新安装XE7,问题依旧。
  • 尝试过清理项目,但没有成功。

请帮我解决这个问题。提前致谢!

最佳答案

由于我在让调试器工作时也遇到了很多问题,所以我给自己列了一个必须检查的列表。因此,您可以尝试以下一些操作:

  • 使用项目的“调试”构建配置,应如下配置
    • 搜索路径与您的实际来源相符
    • “本地符号”是正确的
    • “使用调试 dcus”为 true
    • “debug-information”是调试信息
    • “优化”是错误的
    • 有一次我还必须检查“远程调试符号”
  • 尝试关闭 ide,然后仅使用一个项目重新打开它
  • 如果您使用 devextension,请转到 devextensions 选项
    • 正在编译 -> 勾选“编译前释放其他项目的编译单元缓存”
    • 在扩展 ide 设置下 -> 选中“禁用包缓存”
  • 在“调试器选项”下的 delphi 选项中,“集成调试”必须为 true(但有时取消选中此项、关闭 ide、重新打开并再次检查会有所帮助)

希望这对你也有帮助

关于Delphi XE7 : Debug points not appearing, 调试时未命中断点并且 CPU 窗口打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48422464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com