How to debug a COM+ component in Delphi.
如何在Delphi当中调试COM+组件
Abstract: Debugging a COM+ component on Windows 2000.
摘要:在Windows 2000当中调试一个COM+组件(WinXP/Win2003适用)
Assuming you have already created a COM+ component in Delphi, these are steps for debugging:
假定你已经在Delphi当中建议了一个COM+组件,下面是调试步骤:
1. In Delphi, go into the menu option Project ¦ Options ¦ Linker and setting the Include remote debug symbols option.
1.在Delphi当中,找到Project菜单,点击Options...项,然后在弹出的对话框当中找到Linker栏,并且设置(选中)Include remote debug symbols 选项
2. Go into the menu option Run ¦ Parameters.
2.转到菜单Run,点击Parameters...项,
On the Local tab, under Host Application enter C:/WINNT/system32/dllhost.exe (In WinXP/Win2k3: %windir%/system32/dllhost.exe)
在弹出的对话框当中,在Host Application下的输入框内,输入 C:/WINNT/system32/dllhost.exe (这里的C盘请使用实际的操作系统路径替代,在Winxp或者Win2003当中,则输入C:/WINDOWS/system32/dllhost.exe)
Under Parameters enter /ProcessID:{GUID}
在Parameters下的输入框内输入 /ProcessID:{GUID}
where GUID is the Application ID for your application.
这个GUID是你的应用程序
This GUID can be obtained by going into Control Panel ¦ Administrative Tools ¦ Component Services
Locate the COM+ application under Component Services ¦ Computer and open its properties.
On the first page below, the description box, is the Application ID.
这个GUID可以通过打开控制面板,找到管理工具,然后打开组件服务,展开计算机,找到COM+应用程序并打开它的属性。
在第一页下方,描述框下面就是这个应用程序的ID号。(需要说明的是这个应用程序,是指的COM+当中的应用程序,即组件的一个管理分组,我们组件安装在其中。也就是它的GUID,而并不是我们的COM组件自己的CLSID)
After you have entered these parameters you can run the app (F9) to begin debugging.
完成这些参数的输入,你就可以运行应用程序(按F9)开始调试.
(这个时候你可能看到你所设置的断点好象没有生效,但是当你把断点调置在一个接口代码当中,再用一个外部应用程序去调用时,它就生效了。)
分享到:
相关推荐
Delphi编写的 COM+组件实现客户端、服务器回调 delphi实现的COM+组件处理数据库Blob字段 Delphi实现的com+组件数据库连接池
XP环境下在Delphi中调试COM+组件,我的操作过程实录!
一个非常详细的delphi制作com+组件的过程,可以帮助学习
如何创建com+组件并部署,在C#程序里如何应用com+组件
深入理解 COM+组件技术,深入理解 COM+组件技术 需要的朋友可以看看。
该文档是在net平台下开发COM+组件 ,介绍了一般步骤
本文介绍了在.net下如何开发COM+组件,并以实例相附。
delphi 源码 实现spy++ 功能 获取窗口名 类名等
java调用com+组件,方便快捷,而且非常简单
安装COM+时要用的的几个文件,有时安装了IIS后并不能使用,因为COM+出错,而这时就需要安装COM+
delphi开发的dll +exe +bpl 实例,不可缺少的DELPHI开发资料!
安装sql2005过程有很多错误,这是其中com+组件问题的饿解决方法
Delphi++ seamlessly imports and intergrates ActiveX Controls, COM Type Libraries and includes additionally a new technology which enables the developers to import and utilize Microsoft .NET Framework...
ATA COM+组件应用程序设计 2009年7真题
想学习COM+组件的,可以下载来看看。 这里面是别人学习COM时的总结。
调试COM+组件 使用条件编译 调试VC++组件 用VisualStUdioAnalyzer剖析 小结 第19章 部署COM与COM+应用程序 DCOM应用程序部署 配置DCOM服务器 配置DCOM客户机 在Internet上部署 Internet上部署与包装 ...
COM+组件编程技术内幕 COM+组件编程技术内幕 pdg文档
一个简单的delphi com+入门实例,如果还没有开发过com+的朋友,可以下载学一下。
COM+组件注册方法 regsvr32.exe
Delphi学习宝典++++++附带有一下实用的东西++++++绝对是个好的Delphi学习宝典~~~~~~~~~欢迎下载!