diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-28 15:12:38 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-28 15:12:38 +0100 |
commit | 9fafdd4546bb51ff2a29a67f369797d19d614350 (patch) | |
tree | 162415b1a3ceccc14893f7bbe41cb1ac7182824f | |
parent | d5d3cc71b8a06709de0ae2d2cf2e34a3c368fe30 (diff) | |
download | UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar.gz UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar.lz UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.tar.xz UXP-9fafdd4546bb51ff2a29a67f369797d19d614350.zip |
basilisk -jsdebugger - Import Console.jsm before calling console.[something]
https://github.com/MoonchildProductions/moebius/pull/250
-rw-r--r-- | devtools/client/devtools-startup.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/client/devtools-startup.js b/devtools/client/devtools-startup.js index f07e4ff2b..377ab6419 100644 --- a/devtools/client/devtools-startup.js +++ b/devtools/client/devtools-startup.js @@ -104,12 +104,14 @@ DevToolsStartup.prototype = { return Services.prefs.getBoolPref(pref); }); } catch (ex) { + let { console } = Cu.import("resource://gre/modules/Console.jsm", {}); console.error(ex); return false; } if (!remoteDebuggingEnabled) { let errorMsg = "Could not run chrome debugger! You need the following " + "prefs to be set to true: " + kDebuggerPrefs.join(", "); + let { console } = Cu.import("resource://gre/modules/Console.jsm", {}); console.error(new Error(errorMsg)); // Dump as well, as we're doing this from a commandline, make sure people // don't miss it: |