Hi developers,
I succeeded in printing out the Zotero.debug log to a file with this start command:
> $zotero_path" -ZoteroDebugText -jsconsole -debugger -purgecaches &>./zotero-debug.txt
But I cannot find the log in the browser console, while this line(resource://zotero/reader/pdf/web/viewer.js) can do that:
> console.log(`PDF ${pdfDocument.fingerprints[0]} [${info.PDFFormatVersion} ` + `${(info.Producer || "-").trim()} / ${(info.Creator || "-").trim()}] ` + `(PDF.js: ${_pdfjsLib.version || "?"} [${_pdfjsLib.build || "?"}])`);
I modified the `Zotero.debug` to `console.log` in the make-it-red plugin, and an error occurred:
> console is not defined
How can I print out the log in the browser console?
Thanks!