调试时未击中断点,Outlook Add in [英] Breakpoints are not hit when debugging, Outlook Add in
问题描述
我花了半天的时间来解决此问题,但找不到解决方案. 我正在使用Visual Studio 2013,并且在一个解决方案中有大约10个项目. 其中之一是Outlook Addin.
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.
Outlook指向调试目录(PROJECT_NAME/bin/Debug/AddinOutlook2013.vsto | vstoocal)
The Outlook refer to Debug Directory ( PROJECT_NAME/bin/Debug/AddinOutlook2013.vsto|vstoocal)
当单击Outlook中的Addin中的按钮时,成功显示一个简单的对话框(OK).但是,当我将断点放在代码中时,它就永远不会被击中.
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.
问题
在Outlook添加到项目"中进行调试时,未达到断点.
Breakpoints are not hit when debugging in Outlook Add in project.
我的DID是什么:
- 尝试过此链接 https://www.add-in-express.com /docs/net-deploying-debugging-tips.php
- 重新安装 添加.
- 启用定义DEBUG常量"并禁用优化代码"
- 将"Startexternal程序"设置为Outlook应用程序".exe" 路径.
- 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.
我如何达到断点?
感谢您的帮助和建议.
推荐答案
已解决!!!!
感谢您的帮助.终于我做到了!!
Thank you for many helps. Finally i have done it !!
我如何解决
将启动项目"设置为加载项项目". 然后关闭Outlook,然后以调试方式运行该解决方案.
Set the Startup Project to Addin Project. Then Close Outlook and then Run as Debug for the Solution.
感谢您的帮助!
我爱你!
这篇关于调试时未击中断点,Outlook Add in的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!