diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs b/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs index 7e0ca08184..4b460f301f 100644 --- a/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs +++ b/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs @@ -130,9 +130,11 @@ namespace ICSharpCode.Profiler.Controller.Data try { this.Values.Add(counter.NextValue()); - } catch (Exception e) { #if DEBUG + } catch (Exception e) { Console.WriteLine(e.ToString()); + #else + } catch (Exception) { #endif this.Values.Add(defaultValue); }