I am trying to debug OpenNI, so I downloaded the source, compiled, added the OpenNI project to my existing solution, included the new header files, linked to the newly compiled library, added OpenNI project references to my existing projects and added the .pdb locations to my VS symbols locations.
After all of this, I can still only hit the breakpoints in the header files. Whenever I add a breakpoint in a source, VS says symbols are not loaded. Anything I’m not doing/doing wrong?
Thanks!
I would guess that the PDBs for the libraries aren’t actually being loaded, or don’t match the DLL you’re loading. Check the Output pane of VS10. When it loads the DLL, does it say “Symbols loaded”? If not, the PDB either wasn’t found, or the wrong one was found.
(Originally a comment, posted as an answer at OP’s request).