Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #477 from ajaxorg/issues/464

Issues/464
  • Loading branch information...
commit 866f97a5773c5d9c4a5a74a76348475b5b2de244 2 parents d021247 + 56c477e
@sergi sergi authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 client/ext/debugger/debugger.js
View
14 client/ext/debugger/debugger.js
@@ -179,8 +179,8 @@ module.exports = ext.register("ext/debugger/debugger", {
_self.$syncTree();
});
mdlDbgSources.addEventListener("update", function(e) {
- if (e.action != "add")
- return;
+ if (e.action !== "add") return;
+
// TODO: optimize this!
_self.$syncTree();
});
@@ -252,6 +252,16 @@ module.exports = ext.register("ext/debugger/debugger", {
//console.log("v8 updated", e);
});
});
+
+ // we're subsribing to the 'running active' prop
+ // this property indicates whether the debugger is actually running (when on a break this value is false)
+ stRunning.addEventListener("prop.active", function (e) {
+ // if we are really running (so not on a break or something)
+ if (e.value) {
+ // we clear out mdlDbgStack
+ mdlDbgStack.load("<frames></frames>");
+ }
+ });
},
showDebugFile : function(scriptId, row, column, text) {
Please sign in to comment.
Something went wrong with that request. Please try again.