depth--; XPC_LOG_ALWAYS(("XPCContext @ %x", this)); XPC_LOG_INDENT(); XPC_LOG_ALWAYS(("mJSContext @ %x", mJSContext)); XPC_LOG_ALWAYS(("mGlobalObj @ %x", mGlobalObj)); XPC_LOG_ALWAYS(("mWrappedNativeClassMap @ %x with %d classes", \ mWrappedNativeClassMap, \ mWrappedNativeClassMap ? mWrappedNativeClassMap->Count() : 0)); XPC_LOG_ALWAYS(("mWrappedJSClassMap @ %x with %d classes", \ mWrappedJSClassMap, \ mWrappedJSClassMap ? mWrappedJSClassMap->Count() : 0)); XPC_LOG_ALWAYS(("mWrappedNativeMap @ %x with %d wrappers", \ mWrappedNativeMap, \ mWrappedNativeMap ? mWrappedNativeMap->Count() : 0)); XPC_LOG_ALWAYS(("mWrappedJSMap @ %x with %d wrappers", \ mWrappedJSMap, \ mWrappedJSMap ? mWrappedJSMap->Count() : 0));  if(depth && mWrappedNativeClassMap && mWrappedNativeClassMap->Count()) { XPC_LOG_ALWAYS(("The %d WrappedNativeClasses...",\ mWrappedNativeClassMap->Count())); XPC_LOG_INDENT(); mWrappedNativeClassMap->Enumerate(WrappedNativeClassMapDumpEnumerator, &depth); XPC_LOG_OUTDENT(); }  if(depth && mWrappedJSClassMap && mWrappedJSClassMap->Count()) { XPC_LOG_ALWAYS(("The %d WrappedJSClasses...",\ mWrappedJSClassMap->Count())); XPC_LOG_INDENT(); mWrappedJSClassMap->Enumerate(WrappedJSClassMapDumpEnumerator, &depth); XPC_LOG_OUTDENT(); }  if(depth && mWrappedNativeMap && mWrappedNativeMap->Count()) { XPC_LOG_ALWAYS(("The %d WrappedNatives...",\ mWrappedNativeMap->Count())); XPC_LOG_INDENT(); mWrappedNativeMap->Enumerate(WrappedNativeMapDumpEnumerator, &depth); XPC_LOG_OUTDENT(); }  if(depth && mWrappedJSMap && mWrappedJSMap->Count()) { XPC_LOG_ALWAYS(("The %d WrappedJSs...",\ mWrappedJSMap->Count())); XPC_LOG_INDENT(); mWrappedJSMap->Enumerate(WrappedJSMapDumpEnumerator, &depth); XPC_LOG_OUTDENT(); }  XPC_LOG_OUTDENT();
depth-- ; XPC_LOG_ALWAYS(("nsXPConnect @ %x with mRefCnt = %d", this, mRefCnt)); XPC_LOG_INDENT(); XPC_LOG_ALWAYS(("mArbitraryScriptable @ %x", mArbitraryScriptable)); XPC_LOG_ALWAYS(("mInterfaceInfoManager @ %x", mInterfaceInfoManager)); XPC_LOG_ALWAYS(("mContextStack @ %x", mContextStack)); XPC_LOG_ALWAYS(("mThrower @ %x", mThrower)); if(mRuntime) mRuntime->DebugDump(depth); else XPC_LOG_ALWAYS(("mRuntime is null")); nsXPCWrappedNativeScope::DebugDumpAllScopes(depth); XPC_LOG_OUTDENT();
XPCContext::DebugDump(int depth){#ifdef DEBUG    depth--;    XPC_LOG_ALWAYS(("XPCContext @ %x", this));        XPC_LOG_INDENT();        XPC_LOG_ALWAYS(("mJSContext @ %x", mJSContext));        XPC_LOG_ALWAYS(("mGlobalObj @ %x", mGlobalObj));        XPC_LOG_ALWAYS(("mWrappedNativeClassMap @ %x with %d classes", \            mWrappedNativeClassMap, \            mWrappedNativeClassMap ? mWrappedNativeClassMap->Count() : 0));        XPC_LOG_ALWAYS(("mWrappedJSClassMap @ %x with %d classes", \            mWrappedJSClassMap, \            mWrappedJSClassMap ? mWrappedJSClassMap->Count() : 0));        XPC_LOG_ALWAYS(("mWrappedNativeMap @ %x with %d wrappers", \            mWrappedNativeMap, \            mWrappedNativeMap ? mWrappedNativeMap->Count() : 0));        XPC_LOG_ALWAYS(("mWrappedJSMap @ %x with %d wrappers", \            mWrappedJSMap, \            mWrappedJSMap ? mWrappedJSMap->Count() : 0));        if(depth && mWrappedNativeClassMap && mWrappedNativeClassMap->Count())        {            XPC_LOG_ALWAYS(("The %d WrappedNativeClasses...",\                            mWrappedNativeClassMap->Count()));            XPC_LOG_INDENT();            mWrappedNativeClassMap->Enumerate(WrappedNativeClassMapDumpEnumerator, &depth);            XPC_LOG_OUTDENT();        }        if(depth && mWrappedJSClassMap && mWrappedJSClassMap->Count())        {            XPC_LOG_ALWAYS(("The %d WrappedJSClasses...",\                            mWrappedJSClassMap->Count()));            XPC_LOG_INDENT();            mWrappedJSClassMap->Enumerate(WrappedJSClassMapDumpEnumerator, &depth);            XPC_LOG_OUTDENT();        }        if(depth && mWrappedNativeMap && mWrappedNativeMap->Count())        {            XPC_LOG_ALWAYS(("The %d WrappedNatives...",\                            mWrappedNativeMap->Count()));            XPC_LOG_INDENT();            mWrappedNativeMap->Enumerate(WrappedNativeMapDumpEnumerator, &depth);            XPC_LOG_OUTDENT();        }        if(depth && mWrappedJSMap && mWrappedJSMap->Count())        {            XPC_LOG_ALWAYS(("The %d WrappedJSs...",\                            mWrappedJSMap->Count()));            XPC_LOG_INDENT();            mWrappedJSMap->Enumerate(WrappedJSMapDumpEnumerator, &depth);            XPC_LOG_OUTDENT();        }        XPC_LOG_OUTDENT();#endif}