简体   繁体   中英

Debug logging in Thunderbird's userChrome.js

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?

  1. Write console.log("hello"); in your *.uc.js file.
  2. Open browser console(ctrl + shift + j).

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM