Reputation: 320
Currently when I start the plugin the breakpoint on the definition of the handler of Me.Startup gets hit.
But the breakpoint on the definition of Application.DocumentOpen never gets triggered when I open an existing word document.
I looked online and microsoft wants us to debug this type of project using MessageBoxes, but surely there must be a better way? Is it even possible?
Upon further research using AddinSpy it turns out that I am meaning an Add-in ALL path, however the path is specified and is seen by the AddinSpy. Where does it expect the dll to be?
Upvotes: 0
Views: 575
Reputation: 49395
But the breakpoint on the definition of Application.DocumentOpen never gets triggered when I open an existing word document.
Where and when do you subscribe to the DocumentOpen event of the Application class? What code exactly do you use?
Anyway, I'd recommend using the Debug.WriteLine statements in the code to see what happens under the hood. See How to trace and debug in Visual C# for more information.
Upvotes: 1