Skip to content

Commit e271395

Browse files
Extra line with all the arguments for debugging purposes
1 parent 89833d4 commit e271395

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Source/RunActivity/Viewer3D/Processes/GameStateRunActivity.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,19 @@ void InitLogging(UserSettings settings, string[] args, bool appendLog)
819819
Console.WriteLine("Executable = {0}", Path.GetFileName(Application.ExecutablePath));
820820
foreach (var arg in args)
821821
Console.WriteLine("Argument = {0}", arg);
822+
#if DEBUG
823+
string debugArgline = "";
824+
foreach (var arg in args)
825+
{
826+
if (arg.Contains(" ")) {
827+
debugArgline += "\"" + arg + "\" ";
828+
} else
829+
{
830+
debugArgline += arg + " ";
831+
}
832+
}
833+
Console.WriteLine("Arguments = {0}", debugArgline.TrimEnd());
834+
#endif
822835
LogSeparator();
823836
settings.Log();
824837
LogSeparator();

0 commit comments

Comments
 (0)