24 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"); 2749string exception = DebugUtils.ReadAnyExceptionFromFile(_instantiationTimeUtc); 2750loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, exception); 2759loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString());
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
1448DebugUtils.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 (7)
BackEnd\DebugUtils_tests.cs (4)
22DebugUtils.ResetDebugDumpPathInRunningTests = true; 23var exceptionFilesBefore = Directory.GetFiles(DebugUtils.DebugDumpPath, "MSBuild_*failure.txt"); 29DebugUtils.DumpExceptionToFile(new Exception("hello world")); 30exceptionFiles = Directory.GetFiles(DebugUtils.DebugDumpPath, "MSBuild_*failure.txt");
BackEnd\TaskExecutionHost_Tests.cs (3)
1096File.Exists(DebugUtils.DumpFilePath).ShouldBe(isCritical, $"{DebugUtils.DumpFilePath} expected to exist: {isCritical}"); 1100FileUtilities.DeleteNoThrow(DebugUtils.DumpFilePath);