为什么 VS2008 中的断点会停止工作?

编程入门 行业动态 更新时间:2024-10-28 18:33:46
本文介绍了为什么 VS2008 中的断点会停止工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

I have a c# asp 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 12:00:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154204.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:断点   工作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!