void xpc_ActivateDebugMode() { XPCJSRuntime* rt = nsXPConnect::GetRuntimeInstance(); nsXPConnect::XPConnect()->SetDebugModeWhenPossible(true, true); nsXPConnect::CheckForDebugMode(rt->Runtime()); }