简体   繁体   English

VS2010 从 VS2008 升级时失去断点命中

[英]VS2010 loses breakpoint hits on upgrade from VS2008

I develop some C# Add-Ins for the Sparx Systems Enterprise Architect UML modelling product.我为 Sparx Systems Enterprise Architect UML 建模产品开发了一些 C# 插件。 The Add-In was being developed under VS2008 and all was fine.插件是在 VS2008 下开发的,一切都很好。 I thought I'd upgrade to VS2010 and the upgrade appeared to work without error (or as far as can see any substantive warnings).我想我会升级到 VS2010 并且升级似乎没有错误(或者可以看到任何实质性警告)。 However, I can't trigger any breakpoints under VS2010.但是,我无法在 VS2010 下触发任何断点。 I can set them but when the code runs under the IDE, the code doesn't stop at the breakpoint.我可以设置它们,但是当代码在 IDE 下运行时,代码不会在断点处停止。

The PDB files are being created and the source and binaries are in synch.正在创建 PDB 文件,并且源和二进制文件是同步的。 I found some references on the net (and in Stack Overflow) to issues with breakpints and web development, but I'm just developing COM aware Add-Ins with no fancy stuff.我在网上(和 Stack Overflow)上找到了一些关于断点和 web 开发问题的参考资料,但我只是在开发 COM 感知加载项,没有花哨的东西。 I tried some of those solutions "on spec" to no avail.我尝试了一些“按规格”解决方案,但无济于事。

Anyone got any ideas why the upgrade has resulted in this?有人知道为什么升级会导致这种情况吗?

TIA, Paolo TIA,保罗

I had the exact same issue a couple months ago with breakpoints not stopping.几个月前我遇到了完全相同的问题,断点没有停止。 I ultimately installed the service pack like @Hans Passant mentioned and it fixed my issues.我最终安装了@Hans Passant 提到的服务包,它解决了我的问题。 I've also read that reinstalling VS2010 will fix it, but I think you should just go for the service pack.我也读过重新安装 VS2010 会解决它,但我认为你应该只为服务包 go 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM