From: Woongsuk Cho Date: Mon, 25 Feb 2019 09:25:27 +0000 (+0900) Subject: Add COMPlus_DebugWriteToStdErr=1 to environment. X-Git-Tag: accepted/tizen/unified/20190403.064844~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01dc9763f4ecedc01b9558f5190f116a345eb07a;p=platform%2Fcore%2Fdotnet%2Flauncher.git Add COMPlus_DebugWriteToStdErr=1 to environment. System.Diagnostics.Debug.WriteLine() function write logs to journalctl which cannot be accessed by 3rd party developer. To show that logs to dlogutil, add environment value "COMPlus_DebugWriteToStdErr=1". --- diff --git a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc index 920092c..2f946c9 100644 --- a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc +++ b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc @@ -294,6 +294,9 @@ int CoreRuntime::initialize(bool standalone) if (!standalone) putenv(const_cast("COMPlus_EnableDiagnostics=0")); + // Write Debug.WriteLine to stderr + putenv(const_cast("COMPlus_DebugWriteToStdErr=1")); + // read string from external file and set them to environment value. setEnvFromFile();