简体   繁体   English

在Visual Studio 2013中进行调试时附加Microsoft Word进程后无法达到断点

[英]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: 这可能对您有帮助:

  1. Open Task Manager and try ending the process for any copy of WinWord.exe. 打开任务管理器,然后尝试结束WinWord.exe的任何副本的过程。

  2. Open a Windows Explorer. 打开Windows资源管理器。 Navigate to C:\\Users\\Local Settings..\\AssemblyCache 导航到C:\\ Users \\ Local Settings .. \\ AssemblyCache

  3. If you don't see AssemblyCache, Organize > Folder and search options > View > uncheck "Hide protected operating system files (recommended)" 如果看不到AssemblyCache,请组织>文件夹和搜索选项>视图>取消选中“隐藏受保护的操作系统文件(推荐)”

  4. In the directories in AssemblyCache, look for the one containing your .dll. 在AssemblyCache的目录中,查找包含您的.dll的目录。

  5. Delete the .dll. 删除.dll。

  6. Rebuild the project and debug. 重建项目并调试。 Once your add in activates you should see the cache contents get refreshed. 加载项激活后,您应该会看到缓存内容得到刷新。

  7. 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.

相关问题 在Visual Studio 2012/2013中,调试时可能会自动列出断点或方法 - In Visual Studio 2012/2013 is it possible to have breakpoints or methods listed automatically while debugging 在调试期间在Visual Studio中自动附加到子进程 - Attaching to a child process automatically in Visual Studio during Debugging 在Visual Studio中远程调试Azure Web应用程序时未达到断点 - Breakpoints not being hit when remote debugging Azure web app in Visual Studio Visual Studio 2022 for Mac 中未命中断点 - Breakpoints not being hit in Visual Studio 2022 for Mac 无法启动Visual Studio 2013/2012中的程序进行调试 - Unable to start program in Visual Studio 2013/2012 for debugging Visual Studio Code 不会在调试断点处停止 - Visual Studio Code doesnt stop at breakpoints on debugging 在VS10中调试时断点没有被击中 - Breakpoints not getting hit while debugging in VS10 在调试包含大字符串的xunit测试时不会出现断点 - Breakpoints are not hit while debugging xunit test that includes a large string 在 Visual Studio 远程调试中未命中断点 - Break point not hit in Visual Studio Remote Debugging 在Visual Studio 2015中调试本机Android库时,断点不起作用 - Breakpoints don't work while debugging native Android library in Visual Studio 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM