如何在2000Server中调试COM+组件(50分)

  • 主题发起人 主题发起人 小邱
  • 开始时间 开始时间
看李维的ADO/MTS/COM+一书,
 
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1090763
 
不知为什么,可以返回结果,但都不会运行到断点处!!!,执行程序应该不必什么设置吧
 
http://www.codelphi.com/debug/debug.htm [8D]
 
gz or 看李维的ADO/MTS/COM+一书,
 
运行前一定要保证没有组件的线程在执行
How to debug a COM+ component in Delphi. - by Borland Developer Support Staff


Abstract: Debugging a COM+ component on Windows 2000.
Assuming you have already created a COM+ component in Delphi, these are steps for debugging:
1. In Delphi, go into the menu option Project | Options | Linker and setting the Include remote debug symbols option.
2. Go into the menu option Run | Parameters.
On the Local tab, under Host Application enter C:/WINNT/system32/dllhost.exe
Under Parameters enter /ProcessID:{GUID}
where GUID is the Application ID for your application.
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.
After you have entered these parameters you can run the app (F9) to begin
debugging.
 
咳,总算可以了。
可能是今天运气好吧,和以往一样的设置,今天突然可以了。造物弄人。
送分了……
 
后退
顶部