我的项目无法加载符号

发布于 2024-10-03 09:15:11 字数 145 浏览 1 评论 0原文

我有一个项目,我被解压,放在我的计算机上,现在我无法放入任何断点。每当我尝试放入断点时,我都会在断点上看到一个感叹号,上面写着“此断点当前不会该文档尚未加载任何符号。”有人知道我该如何解决这个问题吗?直到我开始运行代码时才会出现此错误,而代码没有运行断点看起来就在那里就好了。

I have a project I was handed that I unzipped, put on my computer, and now I can't put any breakpoints in. Whenever I try to put a breakpoint in I get an exclamation point over the breakpoint saying "This breakpoint will not currently be hit. No symbols have been loaded for this document." Anyone know how I can fix this? This error doesn't show up until the I start to run the code, while the code isn't running the breakpoint looks like it is there just fine.

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

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

发布评论

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

评论(2

春庭雪 2024-10-10 09:15:11

我猜您可能正在运行发布版本?检查项目设置以确保它是调试版本,否则有时会由于编译器设置而忽略断点,因为优化可能会让调试器有点不安。

可能还值得进行清理并重建所有内容,以确保您正在运行正确版本的二进制文件等。

I'd guess that you might be running a release build? Check the project settings to make sure it's a debug build, otherwise breakpoints can be ignored due to compiler settings sometimes since the optimizations can make the debugger a bit upset.

Might also be worth doing a clean and rebuild all to make sure that you're running against the correct version of the binaries etc.

何处潇湘 2024-10-10 09:15:11

您可以尝试以下操作:

打开项目的属性页面并选择“构建”选项卡。单击“高级”。确保在显示“调试信息”的地方选择了“完整”。

此外,删除输出文件夹中的所有 PDB 文件。

Here are some things you can try:

Open up the properties page of the project(s) and select the "Build" tab. Click on "Advanced". Make sure where it says "Debug Info" that "Full" is chosen.

Additionally, delete any PDB files in the output folder.

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