debugger error

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


Answer this question

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

    Thank you for all your help on this sven. After doing some more research I discovered that along with the stuff you told me to do, I also have to set Optimization to 'disabled', and my debugger is working now.

  • 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

    I'm confused. I went into the properties thing, and did all the changes, but I don't understand the .pdb file thing

  • 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

    I did what you said with the Debug Information Format, and the Lnker Generate Debug Info, but what I don't understand is how to attach the pdb file you are talking about with my source code.

  • debugger error