Skip to content

Commit 14c24b2

Browse files
authored
Ensure diagnostic logger verbosity Fixes #7780 (#7897)
1 parent 9c9f439 commit 14c24b2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: src/Build/BackEnd/BuildManager/BuildManager.cs

+6
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ public void BeginBuild(BuildParameters parameters)
466466

467467
_previousLowPriority = parameters.LowPriority;
468468

469+
if (Traits.Instance.DebugEngine)
470+
{
471+
parameters.DetailedSummary = true;
472+
parameters.LogTaskInputs = true;
473+
}
474+
469475
lock (_syncLock)
470476
{
471477
AttachDebugger();

Diff for: src/MSBuild/XMake.cs

+6
Original file line numberDiff line numberDiff line change
@@ -2366,6 +2366,12 @@ string commandLine
23662366
out enableProfiler
23672367
);
23682368

2369+
// We're finished with defining individual loggers' verbosity at this point, so we don't need to worry about messing them up.
2370+
if (Traits.Instance.DebugEngine)
2371+
{
2372+
verbosity = LoggerVerbosity.Diagnostic;
2373+
}
2374+
23692375
if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.DetailedSummary))
23702376
{
23712377
detailedSummary = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.DetailedSummary], defaultValue: true, resourceName: "InvalidDetailedSummaryValue");

0 commit comments

Comments
 (0)