在 Visual C++ 中找不到静态库的调试符号2008年

发布于 2024-09-26 21:21:37 字数 349 浏览 2 评论 0原文

我正在尝试在 Visual Studio 2008 中使用 MFC 调试静态库。在调试模式下运行项目时,断点会变成圆圈,并将鼠标悬停在它们上方会生成消息“当前不会命中断点。尚未加载任何符号”该文档”的

项目配置设置为“调试”,我尝试过清理和重建解决方案,但这并没有解决问题。

在项目的debug文件夹中,有一个vc90.pdb文件,该文件是包含调试信息的文件。在调试模式下运行项目时,我尝试了“调试”->“Windows”->“模块”,右键单击使用该库的 exe 文件,并将 vc90.pdb 文件添加到符号设置中。这仍然没有成功。

有没有人遇到过这个问题,以及如何解决这个问题的任何想法?

谢谢, 亚历克斯

I'm trying to debug a static library using MFC in Visual Studio 2008. When running the project in debug mode the breakpoints turn into circles and hovering over them produces the message "The breakpoint will not currently be hit. No symbols have been loaded for this document"

The project configuration is set to "Debug", and I have tried cleaning and rebuilding the solution, but this did not solve the problem.

In the project's debug folder, there is a vc90.pdb file, which is the file containing the debug information. When running project in debug mode I tried debug->windows->modules, right clicked on the exe file that was using the lib, and added the vc90.pdb file to the symbol settings. This still didn't work.

Has anyone had this problem, and any ideas of how to fix this?

Thanks,
Alex

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清醇 2024-10-03 21:21:37

Alex - 我刚刚从 MSFT 编译了一个示例 DLL/Exe - DLLScreenCap。工作正常,我能够正常进入 DLL 代码。您还应该能够在 DLL 源中设置断点,并且从 .exe 调用时应该会命中该断点。那有用吗?

当我过去遇到过此类问题时 - 通常结果是 IDE 正在加载旧版本的 DLL,因此我会通过更改 DLL 中的某些功能来测试该问题,并确保更改显示出来当你运行代码时。只需进行现实检查以确保加载了正确的代码。

Alex - I just compiled a sample DLL/Exe from MSFT - DLLScreenCap. Worked fine, I was able to step into the DLL code ok. You should also be able to set a breakpoint in the DLL source, and it should hit that when called from the .exe. Does that work?

When I've had this kind of problem in the past - it usually turned out the IDE was loading an old version of the DLL, so I would test that by making some changing some feature in the DLL, and be certain that change shows up when you run the code. Just reality check to be sure the right code was getting loaded.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文