Browse Source

Expressions with dot resolved properly in debugger tooltip

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@906 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
65dbb564c1
  1. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Value.cs
  2. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs

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

@ -93,7 +93,7 @@ namespace Debugger @@ -93,7 +93,7 @@ namespace Debugger
public Variable this[string variableName] {
get {
foreach(Variable v in GetSubVariables(delegate{return this;})) {
foreach(Variable v in GetSubVariables(delegate{ return this.IsExpired?new UnavailableValue(debugger, "Value has expired"):this;})) {
if (v.Name == variableName) return v;
}
throw new DebuggerException("Subvariable " + variableName + " does not exist");

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

@ -120,7 +120,7 @@ namespace Debugger @@ -120,7 +120,7 @@ namespace Debugger
if (index != -1) {
string rootVariable = variableName.Substring(0, index);
string subVariable = variableName.Substring(index + 1);
return this[rootVariable].Value[subVariable];
return this[rootVariable].SubVariables[subVariable];
} else {
foreach (Variable v in InnerList) {
if (v.Name == variableName) {

Loading…
Cancel
Save