25 references to DebugUtils
Microsoft.Build (17)
BackEnd\BuildManager\BuildManager.cs (6)
733var binlogPath = DebugUtils.FindNextAvailableDebugFilePath($"{FrameworkDebugUtils.ProcessInfoString}_BuildManager_{_hostName}.binlog"); 1846DebugUtils.DumpExceptionToFile(e); 2243var logPath = DebugUtils.FindNextAvailableDebugFilePath($"{FrameworkDebugUtils.ProcessInfoString}_ProjectGraph.dot"); 2756string exception = DebugUtils.ReadAnyExceptionFromFile(_instantiationTimeUtc); 2757loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, exception); 2766loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString());
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
1452DebugUtils.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)
1571DebugUtils.DumpExceptionToFile(e);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
849DebugUtils.DumpExceptionToFile(ex);
BackEnd\Node\InProcNode.cs (1)
190DebugUtils.DumpExceptionToFile(e);
NodeEndpointOutOfProcBase.cs (4)
518DebugUtils.DumpExceptionToFile(e); 667DebugUtils.DumpExceptionToFile(e); 726DebugUtils.DumpExceptionToFile(e); 785DebugUtils.DumpExceptionToFile(e);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\DebugUtils_tests.cs (5)
22DebugUtils.ResetDebugDumpPathInRunningTests = true; 24Directory.Exists(DebugUtils.DebugDumpPath) ? Directory.GetFiles(DebugUtils.DebugDumpPath, "MSBuild_*failure.txt") : Array.Empty<string>(); 30DebugUtils.DumpExceptionToFile(new Exception("hello world")); 31exceptionFiles = Directory.GetFiles(DebugUtils.DebugDumpPath, "MSBuild_*failure.txt");
BackEnd\TaskExecutionHost_Tests.cs (3)
1093File.Exists(DebugUtils.DumpFilePath).ShouldBe(isCritical, $"{DebugUtils.DumpFilePath} expected to exist: {isCritical}"); 1097FileUtilities.DeleteNoThrow(DebugUtils.DumpFilePath);