调试按钮在 Delphi 2007 IDE 中被禁用。为什么?
调试按钮在 Delphi 2007 IDE 中被禁用。我可以使用命令行或 Project -> 构建项目构建,但无法运行应用程序或附加到进程。
我想知道过去是否有人遇到过这个问题并可以帮助我。
一些事实:
- Delphi 2007 IDE 安装在我的机器上并且工作得很好。
- 调试按钮一度被禁用,我不知道原因是什么。
- 我尝试重新安装 Delphi,但这没有帮助。
- Delphi 的许可证没问题。
- 我想应该有 带有注册表或第三个的东西 党的组成部分。
- 我是 .NET 开发人员,需要研究一些 Delphi 代码,所以请不要责怪我:)
将不胜感激任何帮助。
Debug buttons are disabled in Delphi 2007 IDE. I can build project with command line or Project -> Build, but cannot run application or either attach to process.
I'm wondering if anyone has encountered this issue in the past and can help me.
Few facts:
- Delphi 2007 IDE was installed on my machine and worked just fine.
- Debug buttons got disabled at one point of time and I have no idea what was the reason.
- I tried reinstalling Delphi, but this did not help.
- License for Delphi is ok.
- I suppose that there should be
something with either registry or 3rd
party components. - I'm .NET developer and need investigate some piece of Delphi code, so please do not blame me :)
Will appreciate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可能性...
转到下拉菜单:“项目/选项/编译器”,并将“构建配置”字段设置为“调试”。在归档的“调试”开关中,打开前 5 个开关,如“调试信息”等!
Possibility...
Go to pull down menu: 'Project/Options/Compiler' and set in field 'Build Configuration' to 'Debug'. In filed 'Debugging' switch-on first 5 switches like 'Debugging Informations' and so on!
因此,正如我后来(来自不同团队的 Delphi 开发人员)发现的那样,问题出在 Delphi 的第 3 方组件上。他们将一些东西存储到注册表中。更改一些注册表项就足够了,他们这样做了,所以我无法将其发布在这里。
非常有趣的是,这些组件是如何发货的。
So, as I figure it out later (from Delphi developers from different team) issue was with 3rd party components to Delphi. They stored something into registry. It was enough to change some registry keys, they did this so I cannot post it here.
Very interesting how it could be that such components got shipped.
禁用调试按钮行为的另一个原因是目标可执行文件在“项目管理器”窗格中未处于活动状态。
您需要在“项目管理器”窗格中右键单击目标 .exe,然后选择“激活”菜单操作。
然后,绿色运行箭头变为可用。
我还注意到,没有激活目标 .exe 也会影响 GExperts 和 Ctrl-F12“查看单元”系统,这非常方便。即,如果项目管理器窗格中的目标 .exe 未标记为活动状态,则 Ctrl-F12 不会执行任何操作。
(我还想知道戴尔笔记本是否劫持了 Ctrl-F12 ..但认为这是一个单独的主题和解决方案)。
希望这个评论有帮助!
Another cause for this behaviour of debug buttons disabled is that the target executable is not active in the Project Manager pane.
You need to right click the target .exe in the Project Manager pane and choose the "Activate" menu action.
Then, the green run arrow becomes available.
I also noted that not having the target .exe activated also affects the GExperts and the Ctrl-F12 "View Unit" system, which is very handy. i.e. Ctrl-F12 does nothing if the target .exe in the Project Manager pane is not marked active.
(I also wondered if Dell notebook had hijacked Ctrl-F12 .. but think that is a separate subject and solution).
Hope this comment helps !