nikhilbchilwant / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
1 stars 1 forks source link

Logging in Firefox requires Firebug #234

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of gwt and gwt-incubator are you using?
1.5.3, 1.5-Dec_28

What OS and browser are you using?
Mac OS X, Firefox 3.0.6

Do you see this error in hosted mode, web mode, or both?
web mode

(If possible, please include a test case that shows the problem)

1. Install Firefox 3, no plugins
2. In your app, call Log.info("am I in the Firefox error log? No?"); in 
onModuleLoad();
3. Open Log window.

What is the expected output? What do you see instead?
I expected to see a log message in the firefox console.  What I got instead was 
a stopped app 
and this error:

Error: $wnd.console is undefined
Source File: 
http://localhost:8888/com.me.TestApp/3466E4DEEE7A3651EC1B46B58C1F3C52.cache.html
Line: 38

Workaround if you have one:

Turn off Logging when testing Firefox, and turn off logging on ship. That last 
part is pretty bad.

The Logging API should not rely on Firebug's presence, but instead use the 
native logging 
capabilities in Firefox.

Original issue reported on code.google.com by reentry.espresso@gmail.com on 9 Feb 2009 at 10:40

GoogleCodeExporter commented 9 years ago
For non-Firebug options, start reading here:

https://developer.mozilla.org/en/Error_Console

Original comment by reentry.espresso@gmail.com on 12 Feb 2009 at 1:56

GoogleCodeExporter commented 9 years ago
The hang should be fixed. We will be able to use default Firefox logging once we
either drop FF2 support or introduce a new deferred binding for it. 

The work around is to add one of the other widget log handlers if you do not 
wish to
install firebug.

Original comment by ecc%google.com@gtempaccount.com on 2 Mar 2009 at 3:56