From 9aa18af3d11facc1e06daf0b381ce20ccb8a1efc Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Tue, 7 Dec 2010 13:38:22 +0100 Subject: [PATCH] Truncate argument values in CallStackPad. This avoids performance problems when long strings are passed as arguments. --- src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs b/src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs index b2a0e3bc53..366b2a5ac0 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs @@ -187,6 +187,8 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads if (showArgumentValues) { try { argValue = frame.GetArgumentValue(i).AsString; + if (argValue != null && argValue.Length > 100) + argValue = argValue.Substring(0, 100) + "..."; } catch { } } if (parameterName != null && argValue != null) {