Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PDB does not match image Error

I'm trying to make a few additions to an open source project, npp-community, but can't seem to debug. The code that I'm trying to debug is compiled into a dll then linked to the primary project. When setting breakpoints I get the following error :

the breakpoint will not currently be hit. No symbols have been loaded for this document.

When I check the modules under debug>windows>modules I check symbol load information and get the following error.

PDB does not match image

I have tried exiting visual studio and restarting/recompiling but that does not seem to fix anything. Google seems to give threads that go in circles and no clear answers.

like image 855
Andrew Redd Avatar asked Oct 13 '11 04:10

Andrew Redd


2 Answers

i have a similar issue with my VS2010 project, turn out the issue is due to mistmatch of Project properties -> C/C++ -> Output Files -> 'Program Database File name', and Project properties -> Linker -> Debugging -> 'Generate Program Database File'.

Fixed it by change the 'Program Database File name' to "inherit from parent or project default".

like image 169
user1380838 Avatar answered Sep 19 '22 23:09

user1380838


The problem here lies in the fact that the debugger was unable to find a valid PDB files for your modules. PDB files are matched against binary images using two parameters: identifier (GUID) and age. There is more information about this process in this article.

Make sure that you have valid PDB files for your modules and that they are in the same directory as modules or in the debugger's search path (Debug->Options and settings...->Symbols).

like image 42
Sebastian Avatar answered Sep 21 '22 23:09

Sebastian