Browse Source

Remove surrounding '<' and '>' from compiler generated variable names;

Check type of argument for property evaluation

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1361 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 19 years ago
parent
commit
e90b0607e5
  1. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ObjectValue.cs
  2. 7
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Variable.cs

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ObjectValue.cs

@ -182,7 +182,7 @@ namespace Debugger @@ -182,7 +182,7 @@ namespace Debugger
ICorDebugValue[] GetArgsForEval(MethodProps method, ValueGetter getter)
{
ObjectValue updatedVal = (ObjectValue)getter();
ObjectValue updatedVal = getter() as ObjectValue;
if (this.IsEquivalentValue(updatedVal)) {
if (method.IsStatic) {
return new ICorDebugValue[] {};

7
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Variable.cs

@ -120,6 +120,13 @@ namespace Debugger @@ -120,6 +120,13 @@ namespace Debugger
this.valueGetter = valueGetter;
this.subVariables = new VariableCollection(debugger);
this.subVariables.Updating += OnSubVariablesUpdating;
if (name.StartsWith("<") && name.Contains(">") && name != "<Base class>") {
string middle = name.TrimStart('<').Split('>')[0]; // Get text between '<' and '>'
if (middle != "") {
this.name = middle;
}
}
}
void OnSubVariablesUpdating(object sender, VariableCollectionEventArgs e)

Loading…
Cancel
Save