Delphi 6 不触发断点
在新工作站安装 Delphi 6 后,我遇到了断点问题。在调试模式下,环境不会触发断点,就像它们根本没有放置一样......
您是否遇到过类似的情况?我想原因是某些设置,但我找不到哪个……
提前TnX!
内马尼亚
After installation of Delphi 6 at new working station I issued problem with breakpoints. In debug mode environment doesn't trigger breakpoints like they are not placed at all...
Have you experienced similar situation? I suppose reason is some setting, but I cannot find which one...
TnX in advance!
Nemanja
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这种情况有时会发生(不仅在 6 中)。
如果失败了。
如果失败了。
Yes, this sometimes happens (not only in 6).
If that fails.
If that fails.
我应用了 @Gamecat 建议的所有设置,因此您可以查看此答案,就像对先前答案的简短补充一样。
我只错过了一个来解决我的问题。在“工具”>“调试器选项”中,我检查了“集成调试”,它使我的断点处于活动状态。当断点开始工作时,我收到错误消息“Project _.exe 引发了异常类 EAccessViolation,并显示消息“模块“IDPDX32.DLL”中地址 4CDEB080 处的访问冲突”。为了解决这个问题,我只是在菜单“工具”>“调试器选项”>“语言异常”中取消选中“出现 Delphi 异常时停止”选项。
现在Delphi工作正常,不需要重新安装。
丢失以前工作正常的配置的原因可能是当路径错误时将我的文件从一个文件夹复制到另一个文件夹(以及配置和其他临时文件),之后我可能删除了旧的配置文件并从头开始设置。 ..
+1 提示:如果您收到此消息:[错误] RLINK32:文件中不支持的 16 位资源 ....\estands\estandar_StdFormMainFrm.DFM 问题出现在文本中-DFM 选项。当您在 IDE 中右键单击表单时,是否选中了菜单项“Text-DFM”(或者可能称为“Text as DFM”)?如果没有,请保存并尝试编译。
如果有人知道这种行为的原因,详细的解释将会很有用。到目前为止,我发现此选项是为了向后兼容旧的 Delphi 版本。
I applied all settings that @Gamecat suggested, so you can look at this answer like short addition to previous answer.
I missed only one more to solve my problem. In Tools>Debugger Options I checked Integrated Debugging which alive my breakpoints. When breakpoints started to work, I got error message 'Project _.exe raised exception class EAccessViolation with message 'Access violation at address 4CDEB080 in module 'IDPDX32.DLL'. ' For solving this issue I just unchecked option 'Stop on Delphi Exceptions' in menu Tools>Debugger Options>Language Exceptions.
Now Delphi works fine and don't need to reinstall it.
Reason for loosing my previous configuration that worked fine might be in copying my files from one folder to another (as well as config and other temp files) when paths became wrong and after that I probably deleted old config files and started with settings from beginning...
+1 Tip: If you get this message: [Error] RLINK32: Unsupported 16bit resource in file ....\estands\estandar_StdFormMainFrm.DFM problem is in Text-DFM option. When you right-click on the form in the IDE, is the menu item "Text-DFM" (or maybe called "Text as DFM") checked? If not, do so, save and try to compile.
If somebody knows reason for this behaviour, detailed explanation would be useful. Until now I found this option is for backwards-compatibility to older Delphi-versions.