issue #2823: Adding XPCInspector support in debugger/main.js.

This commit is contained in:
James Chen 2013-10-09 13:56:40 +08:00
parent 7a6861c800
commit 7328ae89a5
1 changed files with 8 additions and 1 deletions

View File

@ -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");