PDB/Debugging configurations...

I'm a little new to VC++... So please bare with me if this is a newbie type question that should be obvious and I've looked around and just seem to be missing the answer apparently...

We have 3 projects in VC++ 2k5. 1 is a lib, 1 a dll, and the other an application. We'd like to be able to step-in-to (when necessary) the source of the lib and dll when/while debugging the application. So far the only way we've been able to get that to work 'reliably' is to copy the lib, dll, and pdb files all in the directory of the appication we are debugging. We'd like to not have to copy those into every application we'd like to use/debug with the lib and dll. How can we configure the application to look for the pdb and other necessary files from the lib and dll's build directories, instead of it's own

I guess what I'm asking is what are the rules that VC++'s IDE follows for finding the debugging symbols/information for projects... All these projects are already set-up in the same solution, and have dependancies linked in appropriately... Just debugging seems to be an problem.

Thanks,
George



Answer this question

PDB/Debugging configurations...

  • Daniel de Lima

    I suppose that's one way.. That's bad in that you get a directory with a lot of files in it if you have a lot of projects that you build, run, and debug regularly (which I do).
    Is this really the only solution to this problem

    George


  • Nate_NC

    Ted. wrote:
    You can also add the paths to tools->options->projects&solutions-VC++directories->executable files, or the system path (environment variable) (p.s. not sure if this works)

    Don't like either of those options, but the first one you suggested seems like the best approach... Probably what I'll use. Thanks for your time.



  • s_sd

    You can also add the paths to tools->options->projects&solutions-VC++directories->executable files, or the system path (environment variable)  (p.s. not sure if this works)
  • Checker_Mac_Rohrle

    The solution I use is to change the build destination for every DLL, EXE, and PDB to a common folder.

    e.g. C:\Testproj\Myproj1, C:\testproj \Myproj2, both build into c:\testproj\rundebug for debug version, and c:\testproj\runrelease for release version.


  • PDB/Debugging configurations...