48 references to DebugUtils
Microsoft.Build (29)
BackEnd\BuildManager\BuildManager.cs (10)
727if (DebugUtils.ShouldDebugCurrentProcess is false || 733var binlogPath = DebugUtils.FindNextAvailableDebugFilePath($"{DebugUtils.ProcessInfoString}_BuildManager_{_hostName}.binlog"); 814if (!DebugUtils.ShouldDebugCurrentProcess) 1769DebugUtils.DumpExceptionToFile(e); 2166var logPath = DebugUtils.FindNextAvailableDebugFilePath($"{DebugUtils.ProcessInfoString}_ProjectGraph.dot"); 2672string exception = DebugUtils.ReadAnyExceptionFromFile(_instantiationTimeUtc); 2673loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, exception); 2682loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString());
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
134_debugDumpPath = DebugUtils.DebugPath; 1442DebugUtils.DumpExceptionToFile(e);
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
465DebugUtils.DumpExceptionToFile(e);
BackEnd\Components\Logging\EventSourceSink.cs (2)
424DebugUtils.DumpExceptionToFile(exception); 434DebugUtils.DumpExceptionToFile(exception);
BackEnd\Components\Logging\LoggingService.cs (1)
1534DebugUtils.DumpExceptionToFile(e);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
848DebugUtils.DumpExceptionToFile(ex);
BackEnd\Components\Scheduler\Scheduler.cs (1)
215_debugDumpPath = DebugUtils.DebugPath;
BackEnd\Node\InProcNode.cs (1)
191DebugUtils.DumpExceptionToFile(e);
CommunicationsUtilities.cs (3)
520ErrorUtilities.VerifyThrowInternalNull(DebugUtils.ProcessInfoString, nameof(DebugUtils.DebugPath)); 1160s_debugDumpPath ??= DebugUtils.DebugPath;
DebugUtils.cs (1)
180/// that poisons the entire <see cref="DebugUtils"/> type, whereas the static constructor's
NodeEndpointOutOfProcBase.cs (4)
518DebugUtils.DumpExceptionToFile(e); 667DebugUtils.DumpExceptionToFile(e); 726DebugUtils.DumpExceptionToFile(e); 785DebugUtils.DumpExceptionToFile(e);
PrintLineDebugger.cs (1)
118? $"{DebugUtils.ProcessInfoString}_{id}"
TaskLoader.cs (1)
121taskAppDomain.UnhandledException += DebugUtils.UnhandledExceptionHandler;
Microsoft.Build.Engine.UnitTests (19)
BackEnd\DebugUtils_tests.cs (14)
21DebugUtils.ResetDebugDumpPathInRunningTests = true; 22var exceptionFilesBefore = Directory.GetFiles(DebugUtils.DebugDumpPath, "MSBuild_*failure.txt"); 28DebugUtils.DumpExceptionToFile(new Exception("hello world")); 29exceptionFiles = Directory.GetFiles(DebugUtils.DebugDumpPath, "MSBuild_*failure.txt"); 61DebugUtils.SetDebugPath(); 62string resultPath = DebugUtils.DebugPath; 72DebugUtils.SetDebugPath(); 96DebugUtils.SetDebugPath(); 97string resultPath = DebugUtils.DebugPath; 106DebugUtils.SetDebugPath(); 127DebugUtils.SetDebugPath(); 128string resultPath = DebugUtils.DebugPath; 137DebugUtils.SetDebugPath(); 147DebugUtils.IsInTaskHostNode().ShouldBeFalse();
BackEnd\TaskExecutionHost_Tests.cs (5)
1076DebugUtils.SetDebugPath(); 1096File.Exists(DebugUtils.DumpFilePath).ShouldBe(isCritical, $"{DebugUtils.DumpFilePath} expected to exist: {isCritical}"); 1100FileUtilities.DeleteNoThrow(DebugUtils.DumpFilePath); 1105DebugUtils.SetDebugPath();