[英]Unable to hit the breakpoints after attaching the Microsoft Word process while debugging in Visual Studio 2013
We have a C# application which communicates with Microsoft Word. 我们有一个与Microsoft Word通信的C#应用程序。 We have recently migrated from Visual Studio 2008 to 2013. While debugging we have to attach the Word process in order to hit the break points. 我们最近从Visual Studio 2008迁移到了2013。在调试时,我们必须附加Word流程才能达到断点。 We are not able to hit the breakpoints even after attaching the Word process in VS 2013. Kindly help us on this. 即使在VS 2013中附加了Word流程后,我们也无法达到断点。请为此提供帮助。
Thanks. 谢谢。
This might help you: 这可能对您有帮助:
Open Task Manager and try ending the process for any copy of WinWord.exe. 打开任务管理器,然后尝试结束WinWord.exe的任何副本的过程。
Open a Windows Explorer. 打开Windows资源管理器。 Navigate to C:\\Users\\Local Settings..\\AssemblyCache 导航到C:\\ Users \\ Local Settings .. \\ AssemblyCache
If you don't see AssemblyCache, Organize > Folder and search options > View > uncheck "Hide protected operating system files (recommended)" 如果看不到AssemblyCache,请组织>文件夹和搜索选项>视图>取消选中“隐藏受保护的操作系统文件(推荐)”
In the directories in AssemblyCache, look for the one containing your .dll. 在AssemblyCache的目录中,查找包含您的.dll的目录。
Delete the .dll. 删除.dll。
Rebuild the project and debug. 重建项目并调试。 Once your add in activates you should see the cache contents get refreshed. 加载项激活后,您应该会看到缓存内容得到刷新。
If desired, re-hide the protected OS files. 如果需要,请重新隐藏受保护的OS文件。
I referred folowing link: 我提到了以下链接:
https://gis.stackexchange.com/questions/13606/why-cant-the-breakpoint-be-hit-when-debugging-an-arcgis-10-add-in https://gis.stackexchange.com/questions/13606/why-cant-the-breakpoint-be-hit-when-debugging-an-arcgis-10-add-in
Not sure if this works for VS2013 too. 不知道这是否也适用于VS2013。 Please try it out. 请尝试一下。 All the best. 祝一切顺利。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.