I'm trying to debug a custom javascript for Thunderbird that is defined in userChrome.js. Unfortunately I did not find a decent way to log to the javascript console. Is there an easy way to dump some information to an easily accessible console/logfile so that I can debug my script? I have console² installed and tried calling
throw Error("foobar");
already, without success.
Does Application.console.log("message") work?
console.log("hello");
in your *.uc.js
file. Now, you can see message from file *.uc.js
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.