Jesus Fernandez
Jesus Fernandez

Reputation: 1290

DCOM server debug

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

Upvotes: 1

Views: 957

Answers (2)

Eugenio Miró
Eugenio Miró

Reputation: 2428

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..

Upvotes: 1

sharptooth
sharptooth

Reputation: 170489

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.

Upvotes: 1

Related Questions