Skip to content

Simplify vcxproj files - Remove explicit DebugInformationFormat - #457

Merged
DanRStevens merged 2 commits into
mainfrom
simplifyVcxprojFilesDebugInformationFormat
Aug 13, 2026
Merged

Simplify vcxproj files - Remove explicit DebugInformationFormat#457
DanRStevens merged 2 commits into
mainfrom
simplifyVcxprojFilesDebugInformationFormat

Conversation

@DanRStevens

Copy link
Copy Markdown
Member

Remove explicit setting for DebugInformationFormat, which typically defaults to ProgramDatabase, though may be set to EditAndContinue for Debug configurations when other settings don't conflict with the Edit and Continue feature.

This effectively changes the value of the setting to EditAndContinue for Debug configurations.

Related:

…figs

For `Release` configurations (`UseDebugLibraries` not set to `true`) the `DebugInformationFormat` setting defaults to `ProgramDatabase`.

Technically, the default for any configuration is `ProgramDatabase`, however, for `Debug` configurations (`UseDebugLibraries` set to `true`) there can be an additional override that changes the value when not specified. For the `Release` configurations there is no additional override, so the `ProgramDatabase` value will be retained.
This effectively changes the setting to `EditAndContinue` for `Debug` configurations.

Normally when `DebugInformationFormat` is not specified it defaults to `ProgramDatabase`. However, when `UseDebugLibraries` is set to `true` there may be an additional override to `EditAndContinue`, which is the expected value here.

The details are a little more involved. When `DebugInformationFormat` is set explicitly, then `DebugInformationFormatDefined` is set to `true`. Then if `DebugInformationFormat` is unset it is defaulted to `ProgramDatabase`. Later on, when `DebugInformationFormatDefined` is not set to `true` and `UseDebugLibraries` is set to `true` then the `DebugInformationFormat` setting may be updated to `EditAndContinue`. This later check also depends on a few other settings such as `EnableASAN` and `CLRSupport`.

Effectively by not explicitly setting `DebugInformationFormat`, we can get additional support for Edit and Continue features for `Debug` configurations, assuming other settings don't prevent that support.
@DanRStevens
DanRStevens merged commit 8584f06 into main Aug 13, 2026
6 checks passed
@DanRStevens
DanRStevens deleted the simplifyVcxprojFilesDebugInformationFormat branch August 13, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant