Breakpoints are not hit when debugging, Outlook Add in

守給你的承諾、 提交于 2019-12-12 02:36:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!