为什么 VS2008 中的断点会停止工作? [英] Why would breakpoints in VS2008 stop working?

查看:20
本文介绍了为什么 VS2008 中的断点会停止工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 c# asp.net 网络应用程序.数据库层的断点不再停止执行,但 UI 层的断点仍然正常工作.任何人都可以猜测为什么会发生这种情况吗?

I have a c# asp.net web app. Breakpoints in the database layer are no longer stopping execution but the breakpoints in the UI layer are still working okay. Can anyone hazard a guess why this might be happening?

我已经检查了所有常见的问题(所有项目都启用了调试构建)并重新编译了解决方案中的所有项目...

I've checked all the usual suspects (Debug build is on for all projects) and recompiled all projects in solution...

推荐答案

我会确保 UI 层引用适当的调试".dll.我还考虑在调试时按 CTRL+ALT+U (Modules View) 来查看如果为您的 BLL 和 DAL .dlls 加载符号.如果没有,则 Visual Studio 无法找到该文件的 .PDBs.
调试文件 .PDBs 是否与从模块"窗口引用的 .dlls 位于同一目录中?

I would ensure that the UI layer is referencing the appropriate 'debug' .dll's. I'd also consider pressing CTRL+ALT+U (Modules View) when you're debugging to see if symbols are loaded for your BLL and DAL .dlls. If not then Visual Studio is unable to find .PDBs for that file.
Are debug files .PDBs in the same directory as the .dlls that are being referenced from the Modules window?

这篇关于为什么 VS2008 中的断点会停止工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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