Debugging an Application-Level Smart Tag


If you need to debug an application-level Smart Tag, make sure that the .pdb file that was built with your Smart Tag DLL is copied to the same location where you put your Smart Tag DLL. With your class library project open, use the Attach to Process command in the Debug menu of your project, and attach to the Office application that has your Smart Tag loaded. Then set breakpoints in the methods you want to debugmost likely, ISmartTagRecognizer.Recognize and ISmartTagAction.InvokeVerb.

If you need to attach the debugger earlierfor example, when the Smart Tag is first getting loadedright-click the class library project node in the Solution Explorer window, and choose Properties. In the Properties window, click the Debug tab. Change the Start Action to Start External Program, and enter the full path to the Office application you want to debug. Then you can start debugging by choosing Start Debugging from the Debug menu. Doing so launches the Office application you entered in the start action, and you will be able to debug the Smart Tag as it loads.




Visual Studio Tools for Office(c) Using Visual Basic 2005 with Excel, Word, Outlook, and InfoPath
Visual Studio Tools for Office: Using Visual Basic 2005 with Excel, Word, Outlook, and InfoPath
ISBN: 0321411757
EAN: 2147483647
Year: N/A
Pages: 221

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net