You are here:  / Outlook Forum

Debugging Word addin when Word is launched by another app

Home » Outlook addins and plugins development » Developer Outlook add-ins
Debugging Word addin when Word is launched by another app [message #586] Fri, 07 July 2006 14:07
Messages: 7
Registered: July 2006
Junior Member
How do I debug my Word COM addin when MS Word is kicked off in the background
by another application. The addin is a DLL implementation of the
IDTExtensibility2 interface, and is written in C++ in VS 2003.

Here are the scenarios I need to debug:

a) Word launched in background by MS Outlook when user selects Word as editor.
b) Word launched in background when an embedded Word document (in a document
of another application) is activated in place or in a separate window.
c) Word launched in foreground when linked Word document (host document
belongs to another app) is activated.

I have a breakpoint in OnConnection and have set the "host" app (i.e. the
app that launches Word) as the app to be debugged. The breakpoint is never

I have also tried inserting the statement __asm int 3 in OnConnection. I
have used this successfully in the past with other applications kicked off in
the background - it would prompt me to kick off a debugger which would then
break at the _-asm statement. But for some reason, it doesn't work in the
case of the Word addin.

Any ideas?

Previous Topic:Outlook ContactItem as vCard?
Next Topic:Outlook Custom form - resize event handling
Goto Forum: