diff --git a/scripting/javascript/bindings/js/debugger/main.js b/scripting/javascript/bindings/js/debugger/main.js index 53ce50177f..f08009ade6 100644 --- a/scripting/javascript/bindings/js/debugger/main.js +++ b/scripting/javascript/bindings/js/debugger/main.js @@ -42,10 +42,17 @@ function dumpn(str) { function dbg_assert(cond, e) { if (!cond) { + log("assert >>>> " + cond.toString()); return e; } } +function XPCInspector() { + this.exitNestedEventLoop = _exitNestedEventLoop; + this.enterNestedEventLoop = _enterNestedEventLoop; + this.eventLoopNestLevel = _getEventLoopNestLevel; +} + //loadSubScript.call(this, "resource://gre/modules/devtools/server/transport.js"); // XPCOM constructors @@ -179,7 +186,7 @@ var DebuggerServer = { return; } - this.xpcInspector = null;//Cc["@mozilla.org/jsinspector;1"].getService(Ci.nsIJSInspector); + this.xpcInspector = new XPCInspector();//Cc["@mozilla.org/jsinspector;1"].getService(Ci.nsIJSInspector); this.initTransport(aAllowConnectionCallback); this.addActors("resource://gre/modules/devtools/server/actors/root.js");