title: FireBug problem: Can't use console.log
body: <p>I have a problem with the current version of FireBug.</p>
  
  <p>Firefox: 3.6.13<br>
  Firebug: 1.6.0 and 1.6.1b1 (tried both)</p>
  
  <p>My Javascript can't use console.log (or any console at all) to output debug messages. I'm not sure when it stopped working, but for now I get an "console is not defined" when I try to access it or a message popup when I run this code:</p>
  
  <pre><code>if (console == undefined) {
      alert(1);
  }
  </code></pre>
  
  <p>I had the latest FirePHP extension (DeveloperCompanion) installed but removed it to see if that was causing the problem. Didn't change anything though.</p>
  
  <p>Any ideas? Is this happening to someone else, too?</p>
  
  <p><strong>[UPDATE]</strong></p>
  
  <p>Looks like my problem was actually caused by something else: I use jQuery and have all my code wrapped in <code>$(function() {.....});</code> to make it run after the page has been rendered.</p>
  
  <p>What I didn't consider is that then the code runs in another scope. <code>console</code> is not available in that scope.</p>
  
  <p>To use the console I have to call <code>window.console.log('bla');</code>.</p>