From 53a712cf60fc3e543e93199960efff9700159f95 Mon Sep 17 00:00:00 2001 From: Juan Hoyos Date: Mon, 8 Aug 2022 10:19:06 -0700 Subject: [PATCH] Make symbol store settings output more user friendly --- .../SymbolService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Diagnostics.DebugServices.Implementation/SymbolService.cs b/src/Microsoft.Diagnostics.DebugServices.Implementation/SymbolService.cs index c22ad055c2..3f62861b23 100644 --- a/src/Microsoft.Diagnostics.DebugServices.Implementation/SymbolService.cs +++ b/src/Microsoft.Diagnostics.DebugServices.Implementation/SymbolService.cs @@ -917,15 +917,18 @@ private SymbolFile TryOpenReaderFromEmbeddedPdb(PEReader peReader, DebugDirector public override string ToString() { StringBuilder sb = new StringBuilder(); + + sb.AppendLine("Current symbol store settings:"); + ForEachSymbolStore((symbolStore) => { if (symbolStore is HttpSymbolStore httpSymbolStore) { - sb.AppendLine($"{httpSymbolStore} Timeout: {httpSymbolStore.Timeout.Minutes} RetryCount: {httpSymbolStore.RetryCount}"); + sb.AppendLine($"-> {httpSymbolStore} Timeout: {httpSymbolStore.Timeout.Minutes} RetryCount: {httpSymbolStore.RetryCount}"); } else { - sb.AppendLine(symbolStore.ToString()); + sb.AppendLine($"-> {symbolStore.ToString()}"); } }); return sb.ToString();