I am debugging a VS 2008 C++ project. The project links to a static lib whose PDB file is present in same folder as the .lib file. It used to be all OK. PDB of lib file is loaded and source file is accessible during debugging. But now it suddenly fail to load with no change at all.
So how do I diagnose in VC++ to make sure the pdb is found and loaded by IDE?
UPDATE:
I changed EXE project setting to be "YES" for "Use library dependency inputs", and now I can access source code of the lib now, though it doesn't answer my initial question of why pdb of lib suddenly fails to load.
Further Question
My understanding is: EXE file statically links to LIB file, so all referenced binary code in LIB are already included in EXE binary. So do I actually need LIB file present? And, do I need LIB pdb file present or are the debugging info integrated into EXE's pdb file as well?