如何调试Delphi IDE? [英] How to debug Delphi IDE?

查看:124
本文介绍了如何调试Delphi IDE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关如何调试Delphi IDE的详细步骤是什么?

What are the detailed steps on how to debug the Delphi IDE?

从其他帖子中我了解到,需要创建一个项目,而在项目的调试器设置,将项目的主机应用程序设置为Delphi( C:\Program Files\Borland\BDS\3.0\Bin\bds.exe ) 。然后,当项目在调试器中运行时(通过按 F9 键),将出现一个Delphi IDE的第二个实例。

I understand, from other posts, that one needs to create a project and, in the project's debugger settings, set the project's "host application" to Delphi (C:\Program Files\Borland\BDS\3.0\Bin\bds.exe). Then, when the project is run in the debugger (by pressing the F9 key), a second instance of the Delphi IDE should appear.

我已经设法做了上述步骤。但是,当我以调试器模式运行项目时,我没有看到Delphi IDE的任何第二个实例打开。

I have managed to do the above step. However, when I run the project in debugger mode, I don't see any second instance of the Delphi IDE opening.

有一个 VCL 组件,我有它的源代码,构建,编译和安装好。但是,当它放在项目中的表单上时,Delphi会在您关闭表单时挂起。所以,我想知道为什么Delphi在表单上冻结这个组件。 (它在设计时挂起,关闭项目时)。

There is a VCL component, for which I do have the source code, that builds, compiles and installs fine. But, when it is placed on a form in a project, Delphi hangs when you close the form. So, I want to find out why Delphi is freezing on exit with this component on a form. (It hangs at design-time, when closing the project).

推荐答案

您的项目最有可能是EXE类型。 EXE类型项目不需要主机应用程序,因此设置被忽略,没有其他IDE启动。至少应该使您的项目成为一个DLL类型:将启动第二个IDE,但不会非常有用。

Your project is most likely an EXE-type. EXE type projects don't need host applications so the setting is ignored, no other IDE is started. At a minimum, you should make your project a DLL-type: that will start the second IDE, but it will not be very helpful.

您提到的技术通常是用于调试您的设计时间包项目。创建一个设计时包项目,将其安装到IDE中,将项目的主机应用程序设置为IDE,设置一些断点,点击 F9 ,然后第二个Delphi副本将启动。

The technique you mentioned is usually used to debug your design time package projects. Create a design-time package project, install it into the IDE, set the project's host application to be the IDE, set some breakpoints, hit F9 and a second copy of Delphi will start.

您还可以通过手动启动第二个副本,然后使用运行菜单中的附加到进程命令来调试Delphi IDE,但这不会非常有用,因为您不能轻易地找到您的代码设置断点。

You can also "debug" the Delphi IDE by manually starting a second copy yourself and then using the "Attach to process" command from the "Run" menu, but that's not going to be very useful since you can't easily find your code to set a breakpoint.

这篇关于如何调试Delphi IDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆