views:

356

answers:

2

I have several DLLs in my project that are defined to create their *.pdb file (debug info) inside the same folder. The problem is that the only *.pdb file that actually exist inside this folder is the one that belongs to the last compiled DLL. As a result I can debug only the last project (each compilation deletes all the *.pdb in the folder and creates the current compiled DLL pdb file.)

How can I resolve it ? I'm using Visual Studio 2003.

+5  A: 

You either remove *.pdb from Extensions to delete on clean in the project settings or, better, use different Intermediate Directories.
Both settings are in Configuration Properties -> General.

Georg Fritzsche
+1 for diffferent intermediate directories. A good practice to avoid clashes of obj-files too (node.obj anyone? :)
Marcus Lindblom
Yes, I wasn't even aware that it was possible to share intermediate directories without eveything going horribly wrong.
Charles Bailey
A: 

Or you can create separate folder for program releases, and always compile and execute your program from the newest release-folder. This way you can also manage all other external files like images and what not.

AareP
This isn't a solution. It leads to exactly the same problem if you only do that.
Georg Fritzsche
Well, of course all programs should have own release-folders and stored separately.
AareP
I guess i misread then what you meant. "*Compile [...] from the newest release-folder*" i a bit misleading.
Georg Fritzsche