diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index 7db32ac09..4bfef5ae0 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -106,7 +106,18 @@ Zotero.Debug = new function () { if (_console) { var output = 'zotero(' + level + ')' + (_time ? deltaStr : '') + ': ' + message; if(Zotero.isFx && !Zotero.isBookmarklet) { - dump(output+"\n\n"); + // On Windows, where the text console is inexplicably glacial, + // log to the Browser Console instead + // + // TODO: Get rid of the filename and line number + if (Zotero.isWin) { + const consoleJSM = Components.utils.import("resource://gre/modules/devtools/Console.jsm", {}); + consoleJSM.console.sendConsoleAPIMessage(output); + } + // Otherwise dump to the text console + else { + dump(output + "\n\n"); + } } else if(window.console) { window.console.log(output); }