问题描述
我有一个 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.我还考虑在调试时按 ++ (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 ++ (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 中的断点会停止工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!