Wednesday, August 20, 2008

AddIn Part 4 : Debugging MS Word AddIn

As with other project types, we also need to debug AddIn project as and when AddIn loads or any of the event fires for command bars and buttons.

Below are the steps for debugging code in AddIn project:

Right Click the AddIn project and go to Properties

In the Debug tab, under Start Action, select Start external program and set the WINWORD.exe process path. Shown in figure below

Save the project file

Set the breakpoint in code and press F5 to debug.

When it runs, MS Word will be opened and breakpoint will hit when it reaches location.


No comments: