debugging information cannot be found or does not match visual studio's
The main reason is that you don't have a matching pdb and exe.
Some possible solutions:
- You are compiling in release instead of debug
- You need to clean/build or rebuild
- You don't have your pdb files being generated in the same directory as the exe
- You have a mismatching pdb, maybe the copied source is newer than today's date and something isn't building properly.
- Try cleaning out all debug object files
- You are attaching to a process that you started from a different location from where your build exe and pdb exist
- Restart Visual Studio
Debugging information for 'Excel.exe' cannot be found or does not match
Cannot find or open the PDB file.
Generally this error is related to the symbol loaded. We need to enable the symbol Server under TOOLS->Option->Debugging->Symbols, and check the module window and make sure that all symbols are loaded successfully.
Cannot find debugging information when debugging c++ dll
As commented by ortang, you need to activate the debug info when building your project.
See "/DEBUG
(Generate Debug Info) (Visual Studio 2013)":
The
/DEBUG
option creates debugging information for the .exe file or DLL.The linker puts the debugging information into a program database (
PDB
). It updates thePDB
during subsequent builds of the program.It is not possible to create an
.exe
or.dll
that contains debug information.
Debug information is always placed in a.pdb
file.
To set this linker option in the Visual Studio development environment
- Open the project's
Property Pages
dialog box. For details, see Setting Visual C++ Project Properties.- Click the
Linker
folder.- Click the
Debugging property
page.- Modify the
Generate Debug Info
property.
How can I debug this error: 'Debugging information for iisexpress.exe cannot be found or does not match'?
My problem was that the Native Code box was ticked in the Debuggers section of the Web section in Project Properties.
I don't know how this came to be ticked, I certainly never ticked it.
Either way, unticking this box solved my problem.
Debugging information for 'WebDev.WebSer40.exe' cannot found or does not match. Cannot find or open the PDB file
The question very similar to your one Why can't I debug? are alredy answered.
The reasons for your PDB problem eplained here:
You are compiling in release instead of debug
You need to clean/build or rebuild
You don't have your pdb files being generated in the same directory as the exe
You have a mismatching pdb, maybe the copied source is newer than today's date and something isn't building properly.
Try cleaning out all debug object files
- You are attaching to a process that you started from a different location from where your build exe and pdb exist
Related Topics
How to Export Templated Classes from a Dll Without Explicit Specification
C++ Short-Circuiting of Booleans
Can Class Template Constructors Have a Redundant Template Parameter List in C++20
How Does _Builtin_Clear_Cache Work
Advantages of Std::For_Each Over for Loop
C++ Equivalent of Stringbuffer/Stringbuilder
Class Type Non-Type Template Parameter Initialization Does Not Compile
Setting Vector Elements in Range-Based for Loop
At^Sysinfo and a C++ Terminal Program
Cycles in Family Tree Software
Why Use Prefixes on Member Variables in C++ Classes
C++ Inherit from Multiple Base Classes with the Same Virtual Function Name