This project has moved and is read-only. For the latest updates, please go here.

How to debug Excel AddIn

Feb 24, 2017 at 1:21 PM
I am new in NetOffice. I created an Excel AddIn using Developer Toolbox. It would be fine to step into the AddIn and debug it as I am used in the Visual Studio.
Could you tell me if it is possible?
Mar 10, 2017 at 4:54 AM
Yes. We can.

We need to attach the Excel process in Visual Studio to debug the plugin.
  • Close the excel application.
  • Build the Addin project
  • open the excel application. Hope you will see the newly created addin components (like ribbon buttons or task pane, etc.)
  • Now In Visual studio attach the excel process. (Debug > Attach to process and select excel.exe and click attach)
  • Set the break point in your code
  • execute the addin functionality from excel.