Hi there

Just a suggestion for IE(6-8) debugging wrt to GWT2.1 - because
SimpleEventBus.doFire() wraps all handler calls in a try-catch - and
then wraps unknown exceptions as JavascriptExceptions - the "only" way
to get useful IE debugging info (window.onerror) can't be used
(because it requires the original JScript javascript exception, not
the in-code thrown exception, if it's going to be useful) - as per the
comment in com.google.gwt.core.client.impl.Impl.entry()

So - in my apps, i've added the following (yuck:) to SimpleEventBus
****
public static boolean disableExceptionCatch = false;//set if client is
ie6-8 ...would be nicer (probably) to use gwt.create() binding

doFire() ....
if (!disableExceptionCatch) {
                                        try {
                                                event.dispatch(handler);
                                        } catch (Throwable e) {
                                                if (causes == null) {
                                                        causes = new 
HashSet<Throwable>();
                                                }
                                                causes.add(e);
                                        }
                                } else {
                                        event.dispatch(handler);
                                }

****
It's sort of a must-have for IE debugging (unless, of course, you
never get any errors because you write so many unit tests...:-)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to