Browse Source

Truncate argument values in CallStackPad.

This avoids performance problems when long strings are passed as arguments.
pull/14/head
Daniel Grunwald 15 years ago
parent
commit
9aa18af3d1
  1. 2
      src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs

2
src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.xaml.cs

@ -187,6 +187,8 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
if (showArgumentValues) { if (showArgumentValues) {
try { try {
argValue = frame.GetArgumentValue(i).AsString; argValue = frame.GetArgumentValue(i).AsString;
if (argValue != null && argValue.Length > 100)
argValue = argValue.Substring(0, 100) + "...";
} catch { } } catch { }
} }
if (parameterName != null && argValue != null) { if (parameterName != null && argValue != null) {

Loading…
Cancel
Save