IBF Debugging Hint

Published 07 June 04 07:30 PM | chris 

Today in the newsgroups someone asked:

QUESTION: Is there a way to debug the process when the "Show Details" menu item is clicked? When I click "Show Details" in Word the Information Builder task pane appears but my user interface is not loaded. I suspect that my ContextInformation block is incorrect but I do not know what is wrong with it.

Ricard Roma gives an interesting ANSWER: You can use VS to debug your solution in Word as well. Inside your Metadata project just click F5 and your MD Solution will get loaded as well as Word and you'll be able to debug it as in "Build Solution and Execute Action".

Usually this is what I do for debugging:
a) From your MD Project, select your action and do Build Solution and Execute Action, once the pane is up and running go to upper right menu and do Copy SmartTag.
b) Open a Word document and paste the SmartTag (This creates a reference to your data). Make sure that the action you're executing is of type = "EnterContext" since this is the action type that gets executed when you do Show Details.
c) Safe the document.
d) Close the pane you had opened and go back to your MD Project.
e) Now press F5 (this will load Word and it will be pointing to the MD that you have in your project).
f) Once Word is running open the document you just saved.
g) On the SmartTag on that document do ShowDetails... you should now see the action you created executed and the UI displayed (Note again that only the EnterContext action type will get executed).

Because you're inside the VS debugger you can see everything that gets executed and you can also debug your own component and check whether it's getting the right information.

Comments

No Comments
Anonymous comments are disabled