mirror of https://github.com/axmolengine/axmol.git
issue #2823: Adding XPCInspector support in debugger/main.js.
This commit is contained in:
parent
7a6861c800
commit
7328ae89a5
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue