Search code examples
c#visual-studiooutlookoutlook-addin

Breakpoints are not hit when debugging, Outlook Add in


I spend to resolve this issue for half of my working day but I could not find out the solution. I am using Visual Studio 2013 and have around 10 projects in one solution. one of them is Outlook Addin.

The Outlook refer to Debug Directory ( PROJECT_NAME/bin/Debug/AddinOutlook2013.vsto|vstoocal)

It success to show up a simple dialog ( OK ) when a button in Addin in Outlook was clicked. But when i put the break point that code, it is never hit.

PROBLEM

Breakpoints are not hit when debugging in Outlook Add in project.

What I DID were :

How can i hit the breakpoint ?

Thank you for any help and advice.


Solution

  • Resolved !!!!

    Thank you for many helps. Finally i have done it !!

    How did I fix

    Set the Startup Project to Addin Project. Then Close Outlook and then Run as Debug for the Solution.

    Thank you for many helps!

    I love you!