问题
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 :
- Tried to this link https://www.add-in-express.com/docs/net-deploying-debugging-tips.php
- Run the both window application and outlook after re-installed the add in.
- Enable 'Define DEBUG constant' and disable 'Optimize code'
- Set the 'Startexternal program' to the outlook application '.exe' path.
How can i hit the breakpoint ?
Thank you for any help and advice.
回答1:
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!
来源:https://stackoverflow.com/questions/39565293/breakpoints-are-not-hit-when-debugging-outlook-add-in