tags:

views:

125

answers:

2
+1  Q: 

DCOM server debug

Hi, I'm learning DCOM and I need to debug a class that I have created, how can I do this?

+1  A: 

Write a simplest client that does CoInitialize(), then CoCreateInstance().

Insert delays (call to Sleep() for example) into DllGetClassObject() of your server - with ATL you have the full source.

After the client calls CoCreateInstance() attach the debugger to the server host process.

sharptooth
+1  A: 

I think DebugBreak could be of great help for this. You just need to add a conditional compilation line in the debug build to allow execution of this line and the debugger will start. The other way is attaching the debugger to the process and set a breakpoint in the process..

Eugenio Miró
try this tool too ATLTraceTool : http://msdn.microsoft.com/en-us/library/khbh432d(VS.80).aspx
lsalamon