Add COMPlus_DebugWriteToStdErr=1 to environment.
[platform/core/dotnet/launcher.git] / NativeLauncher / launcher / dotnet / dotnet_launcher.cc
index 920092c..2f946c9 100644 (file)
@@ -294,6 +294,9 @@ int CoreRuntime::initialize(bool standalone)
        if (!standalone)
                putenv(const_cast<char *>("COMPlus_EnableDiagnostics=0"));
 
+       // Write Debug.WriteLine to stderr
+       putenv(const_cast<char *>("COMPlus_DebugWriteToStdErr=1"));
+
        // read string from external file and set them to environment value.
        setEnvFromFile();