none
How to debug Application level add-ins task pane, form excel. RRS feed

  • Question

  • Hi Expert,

    How to debug Application level add-ins task pane, form excel.

    I need to use my existing macro enabled file which have some method invoked VSTO procdre. how can use that file to debug VSTO code.

    Regards,

    Manish

    Tuesday, May 17, 2016 7:53 PM

Answers

  • Hi Manish,

    Another way is that changing the start action from 'Start project' to the 'Start external program' which specify the file path of the Excel application on the computer. And specify the file path of which workbook we want to debug in the command line arguments. 

    Here is the screen shot for your reference:

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, May 18, 2016 6:22 AM
    Moderator

All replies

  • Hello Manish,

    You need to attach the debugger to the Excel process with your VSTO add-in running. Thus, you will be able to set a breakpoints in the code and see how it works. See Attach to process menu item in Visual Studio. 

    1. In Visual Studio, select Debug / Attach to Process

    2. In the Attach to Process dialog box, find the program that you want to attach to from the Available Processes list.


    [custom.development]

    Tuesday, May 17, 2016 8:29 PM
  • Hi Manish,

    Another way is that changing the start action from 'Start project' to the 'Start external program' which specify the file path of the Excel application on the computer. And specify the file path of which workbook we want to debug in the command line arguments. 

    Here is the screen shot for your reference:

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, May 18, 2016 6:22 AM
    Moderator