Debug COM+

15.7.04

I hate doing any about COM+ debugging in my work because when I started my 1st multi-tier app, my colleagues told me there was no way to debug it which like delphi project. So I can only set "Raise Exception.create(XXX)" to trace out the bugs. This method is very very time-consuming and no fun. But now I know I'm being cheated by them!!
To debug a COM+ component, there are only few steps:

1. Go to Delphi | Run | Parameters,
    Host Application : C:\WINNT\system32\dllhost.exe
    Parameter: /ProcessID:{15B11F13-7AE8-491B-8056-24A4EBAEB1DB}
    This is the ApplicationID, which shown in the properties of your dll in Component Service.
2. Go to Delphi | Project | Options | Linker, select "Include remote debug symbols".
3. Set breakpoint(s) and run your project to start debugging.

It is fine for me at home (all in my notebook). But I still cannot debug COM+ at work. In office, I debug the COM+ in my computer while my dll files and component service are are in server. Is there any things I have missed? By the way, I'm using D6, Windows2000(my pc) and Windows2003(server).
Any Idea is appreciated.


Comments: Post a Comment

<< Home