It's called "No Debugging Information" error. It says "Debugging information for 'name.exe' cannot be found or does not match. Binary was not built with debugging information." I get this when ever I hit the debugging button. Can anyone help me with this

debugger error
Barbfrog
That is done automatically. You just have to make sure that you use the pdb that was built together with your exe. You can't use an old pdb with a new exe or vice versa.
--
SvenC
AlanKohl
Nallasivan
Hi,
well, your executable does not need any of your variable or function names to execute it only uses memory addresses, except for some symbols which are exported to be used by other programs. So debugging an executable gives you not much information what code is executed when you look at the assembly instructions. With the pdb files you get your variable and function names back and they can be connected to your source code, so instead of stepping through assembly code you can step through your source code.
If you debug your application from within your VC++ project all is setup automatically for you: debug symbols are on by default, the pdb is placed next to your exe and when you press F5 you debug on your source code level.
When you started you app without debugger you can attach to it either explicitly from VC+ or when an exception occurred from the crash dialog.
Does that make sense to you
--
SvenC
lalremsiama
rauhanlinnake
Good to hear.
--
SvenC
Dan-Teklynx
Hi patio87,
you must enable debug info in your VC++ project properties:
C/C++ - General: Debug Information format. Use /Zi in release and /ZI in debug builds
Linker - Debugging: Generate Debug Info: Choose Yes
Rebuild your project and find a .pdb file next to your .exe file. That is needed by the debugger. Copy it next to your exe when you want to debug a crashed app.
--
SvenC
Trisha1802