Reputation: 1290
I'm learning DCOM and I need to debug a class that I have created, how can I do this?
Upvotes: 1
Views: 957
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
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