VS2003 compatibility with disabled debug information


If debug information is disabled, the program database file name will be initialized to $(IntDir)vc$(PlatformToolsetVersion).pdb anyway.
This causes the always complete rebuild, because the mentioned file (in this case vc71.pdb) is not available.
I've to set program database file name to "" to get correct result.

I tried to fix this in Daffodil code, but I failed with this job :(
Closed Jul 17, 2013 at 8:38 PM by owenwengerd


owenwengerd wrote Jul 16, 2013 at 6:54 PM

Good catch. I've implemented and uploaded a fix. Please test the new build and report back if you notice any problems.

wrote Jul 16, 2013 at 6:54 PM

owenwengerd wrote Jul 17, 2013 at 9:54 AM

** Closed by owenwengerd 16.07.2013 10:54

wrote Jul 17, 2013 at 9:54 AM

lukasgru wrote Jul 17, 2013 at 9:58 AM

Thanks for fast action.
But for me this issue is not fully solved, because the editor output is now misleading.
(This point I reached already yesterday...)

Do you find any solution to show correct entry "program database file name" in the properties dialog?
No the default "$(IntDir)vc$(PlatformToolsetVersion).pdb" is shown, even the "format" is "Disabled"?
But with "Disabled" the file name should empty.


owenwengerd wrote Jul 17, 2013 at 2:52 PM

Why do you feel the properties dialog should display an empty program database filename when debug information is disabled? This behavior would be inconsistent with newer versions of Visual Studio, and more importantly it would result in loss of the program database filename property value simply by changing the value of a completely different property.

lukasgru wrote Jul 17, 2013 at 3:36 PM

Showing the file name suggests that this name is used. But it is not used.
Further: Please have a look on the node "Command Line" there the usage if this parameter is shown, too.

owenwengerd wrote Jul 17, 2013 at 4:49 PM

Specifying the filename does not necessarily imply that the file will be created, but I understand your point. I think you want it to behave like the precompiled header filename. When not used, the PCH filename is displayed in the property sheet but is not included in the command line.

I disagree with your conclusion because I think it's important to maintain consistency. I've verified that the native VS 7.1 property window behaves the same way that Daffodil does now: it specifies the PDB filename on the command line regardless of the debug information setting.

lukasgru wrote Jul 17, 2013 at 5:41 PM

You are rights. VS2003 is showing the file name even function is deactivated.
So thanks for your support!!

wrote Jul 17, 2013 at 8:38 PM