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