在2005年VS.Net调试时断点不挂钩 [英] Breakpoint not hooked up when debugging in VS.Net 2005

查看:209
本文介绍了在2005年VS.Net调试时断点不挂钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一直运行到这个问题,最近......当2005年VS.Net调试应用程序,断点没有连接。错误指示编译code是不一样的运行版本,因此有导致断点要断开的不匹配。

Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints are not connected. Error indicates that the compiled code is not the same as the running version and therefore there's a mismatch that causes the breakpoint to be disconnected.

所有的bin文件并重新编译没有帮助的清洗解决方案。不只是发生在一个盒子或个人无论是。

Cleaned solution of all bin file and re-compile doesn't help. Not just happening on a single box or person either.

补充说明:
该解决方案是TFS的源代码控制。如果我删除了本地TFS存储库,并从从头源头控制得到它,有时问题消失。我也试过未安装和重新安装Visual Studio。这也有时帮助。这一事实,即那些工作在某些时候表示该问题不是由直接造成的。

Added Note: This solution is in TFS for Source Control. If I delete my local TFS repository and get it from source control from scratch, SOMETIMES the problem goes away. I've also tried un-installing and re-installed Visual Studio. That also SOMETIMES helps. That fact that both of those work some of the time indicates that the problem isn't caused by either directly.

推荐答案

也许这个建议可能会帮助:

Maybe this suggestion might help:


  1. 虽然在Visual Studio调试,单击调试>窗口>模块。 IDE将停靠模块窗口,显示所有已加载为您的项目的模块。

  2. 查找项目的DLL,并检查符号状态吧。

  3. 如果它说加载符号,那么你的黄金。如果说像无法找到或打开PDB文件,你的模块,选择Load符号上单击鼠标右键,并浏览到您的PDB的路径。

我发现它有时需要:


  1. 停止调试器

  2. 关闭IDE

  3. 关闭宿主应用程序

  4. 核弹的OBJ和bin文件夹

  5. 重新启动IDE

  6. 重建项目

  7. 通过模块窗口再次

  8. 当你浏览到您的PDB文件的位置,符号状态应更改为符号加载,您现在应该能够设置和您在code线搭上一个断点。

来源:断点将目前尚未受到打击。无符号已加载此文件。

这篇关于在2005年VS.Net调试时断点不挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆