title: Debug logging in Thunderbird's userChrome.js
body: <p>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</p>
  
  <pre><code>throw Error("foobar");
  </code></pre>
  
  <p>already, without success.</p>