Skip to content

Commit

Permalink
Merge pull request #2 from HotKeyIt/master
Browse files Browse the repository at this point in the history
Update to use context_names to support AHK_H and probably others
  • Loading branch information
Lexikos committed Jan 9, 2017
2 parents 7213843 + 19bac4c commit ba45527
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/tools/Lib/DebugVars/DebugVarsGui.ahk
Expand Up @@ -247,7 +247,8 @@ class DvContextNode extends DvPropertyParentNode
}

GetWindowTitle() {
return this.context=0 ? "Local vars" : "Global vars"
this.dbg.context_names(, response)
return DvLoadXml(response).SelectNodes("/response/context/@name").Item(this.context).text " vars"
}

Update(tlv) {
Expand All @@ -266,7 +267,8 @@ class Dv2ContextsNode extends DvNodeBase

GetChildren() {
children := []
Loop 2 {
this.dbg.context_names(, response)
Loop % DvLoadXml(response).SelectNodes("/response/context").Length {
children[A_Index] := new DvContextNode(this.dbg, A_Index-1)
children[A_Index].expanded := true
}
Expand Down

0 comments on commit ba45527

Please sign in to comment.