Visual C++:禁用断点

发布于 2024-08-12 16:13:50 字数 240 浏览 3 评论 0原文

我有一个“带有调试信息的版本”非托管 c++ .exe(使用 VS2005 构建)部署到另一台 PC 上,.exe 和 .pdb 位于同一文件夹中。

当我尝试从 VS2005 本地或远程从我的开发 PC 连接到进程时,所有断点都被禁用。我没有收到任何警告/错误弹出窗口,这让我认为 PDB 文件已找到,但不被视为“良好”。这是正确的解释吗?我认为如果它看不到 PDB,我会收到“找不到调试信息”的弹出窗口。

有谁知道可能出什么问题吗?

I have a 'release with debug info' unmanaged c++ .exe (built with VS2005) deployed onto another PC, the .exe and .pdb are in the same folder.

When I try to attach to the process from VS2005, either locally or remotely from my dev PC, all my breakpoints become disabled. I don't get any warning/error popups which makes me think the PDB file is being found, but not seen as 'good'. Is that the right interpretation? I think if it couldn't see the PDB I'd get a "no debug information could be found" popup.

Has anyone got any ideas what can be wrong?

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

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

发布评论

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

评论(3

薯片软お妹 2024-08-19 16:13:50

检查输出窗口 - 它应该告诉您在调试器附加时是否找到调试符号。

断点是否标有黄色感叹号三角形?这可能是由于 PDB 与您正在使用的源版本不对应。右键单击断点并选择允许源代码不同的选项(或重建可执行文件)

HTH

Seb

Check the output window - it should tell you if debug symbols are being found when the debugger attaches.

Are the breakpoints marked with a yellow exclamation mark triangle? This could be due to the PDB not corrresponding to the version of the source you're using. Right click on the breakpoint and select the option that allows the source code to be different (or rebuild your executable)

HTH

Seb

深者入戏 2024-08-19 16:13:50

我最好的猜测是 Visual Studio 找不到 PDB 文件引用的源代码。我现在无法查看,但我认为在这些情况下您可以手动指定源代码的位置(我目前没有可用的 Visual Studio)。

My best guess is that Visual Studio doesn't find the source code PDB files refer to. I am not able to look now, but I think you have the possibility to specify the location of the source code by hand in these cases (I don't have visual studio available at the moment).

雨轻弹 2024-08-19 16:13:50

正在生成 PDB,但另一个编译器设置意味着没有在其中放入任何有用的内容!

The PDB was being generated, but another compiler setting meant nothing useful was being put inside it!

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