Answered Debugging VS2010 and Shared Add-In (MS Access)

  • יום שני 12 מרץ 2012 19:08
     
     

    I've created the Add-In and when I click on debug MSAccess starts up but I cannot get it to stop on a breakpoint in my VB.Net code.  Are there some instructions on how to setup a Shared Add-In project to debug the .Net code?

    Thanks.


    C.Kowitz

כל התגובות

  • יום שלישי 13 מרץ 2012 04:16
    מנחה דיון
     
     תשובה

    load.png (515×397)
    1. You will need the Administrator permission to debug the Shared Add-in, Right click on the Visual Studio and let it runas the Administrator, then open you Add-in solution.

    2. Set the debug | Start external program point to the Excel(it seems that yours is the MSACCESS.EXE), and set the Working directory to the Office14\

    3. Set breakpoint

    4. F5 to debug, it start the Excel and hit the breakpoint, after press F5 it show me the MessageBox.

    Note: To avoid the pre test add-ins project affect your test, please delete them form your disk, and then clean the pre test add-ins:

    HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Excel\Addins 

    If the addin, also cannot loaded for you to test, then also check these registry to see if the add-in registered here. 

    reg.png (905×300)

    Since I forget to capture some steps screenshot, so I create some new project with difference names, you will see that there're difference project names, but I think you will understand it.

    Best wishes,


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us

    • סומן כתשובה על-ידי chief_k יום שלישי 13 מרץ 2012 11:36
    •  
  • יום שלישי 13 מרץ 2012 11:36
     
     
    Thanks that helped.

    C.Kowitz

  • יום שלישי 13 מרץ 2012 12:40
    מנחה דיון
     
     
    You're welcome!

    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us