无法找到调试信息或与 Visual Studio 的不匹配

2023-12-03C/C++开发问题
154

本文介绍了无法找到调试信息或与 Visual Studio 的不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我复制了一个现有项目并重命名了该文件夹.现在,当我尝试编译应用程序时出现此错误

I copied an existing project and renamed the folder. Now I get this error when I try to compile the application

调试信息无法找到或不匹配.未加载符号.
要继续调试吗?

debugging information cannot be found or does not match. No symbols loaded.
Do you want to continue debugging ?

如果我点击是,它会编译并运行良好.但现在我必须处理那个消息.只是好奇我在项目属性中更改了什么以使其停止.

If I click yes, it compiles and runs fine. But now I have to deal with that message. Just curious about what I change in the projects properties to get it to stop.

推荐答案

主要原因是你没有匹配的pdb和exe.

The main reason is that you don't have a matching pdb and exe.

一些可能的解决方案:

  • 您正在发布而不是调试中编译
  • 您需要清理/构建或重建
  • 您没有在与 exe 相同的目录中生成您的 pdb 文件
  • 您的 pdb 不匹配,可能复制的源比今天的日期新,并且某些内容构建不正确.
  • 尝试清除所有调试目标文件
  • 您要附加到从与构建 exe 和 pdb 所在位置不同的位置启动的进程
  • 重启 Visual Studio

这篇关于无法找到调试信息或与 Visual Studio 的不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6