Skip to main content

debugenvsmerge

Specifies whether to merge debug environment variables with the system environment.

debugenvsmerge ("value")

When set to Off, only the debugenvs you specify will be used, preventing them from being merged with the existing system environment. This is useful when you want complete control over the debug environment.

Parameters

value specifies the merge behavior:

ValueDescription
DefaultUse the toolset's default behavior (merge enabled)
OnMerge debug environment with system environment
OffDo not merge with system environment

Applies To

Project configurations.

Availability

Premake 5.0.0-beta8 or later.

Examples

Set debug environment variables without merging with system environment:

filter "configurations:Debug"
debugenvs { "PATH=C:\\custom\\bin", "MY_VAR=value" }
debugenvsmerge "Off"

Explicitly enable merging (default behavior):

filter "configurations:Debug"
debugenvs { "EXTRA_VAR=1" }
debugenvsmerge "On"

See Also