How to debug Excel AddIn

Feb 24 at 12:21 PM
Hi,
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?
Thanks
Mar 10 at 3: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.