On Oct 14, 11:38 am, JohnMudd <[EMAIL PROTECTED]> wrote:
> Any way to get the same sort ofdebuggingsupport in compile mode as
> in shell mode?
>
> I'm using XML/RPC so I have to run in compile mode, not shell mode.
> The biggest drawback is all errors are not caught and reported.  That
> turns simple errors into long bug hunts.
>
> I'm running inside a try block now and reporting all exceptions (that
> are caught) in a log panel.  That helps but I still run into errors
> that go uncaught, just as trying to use panel object that has been set
> to null.  All I get now in unexpected behavior that I have to manually
> track down.

I had ended up implementing a function like this (don't remember where
I found it) and using recent "beta" builds of Firebug:

        /**
         * Console debugging for Firebug and other pieces.
         *
         * @param st
         *            String to echo to debug console.
         */
        public static native void debug(String st)/*-{
        if (typeof console !=  "undefined") console.debug (st);
        }-*/;

It works well enough that I can leave the Firebug console open instead
of creating a logging panel.

--
Thanks,
Jeff
([EMAIL PROTECTED])
FreeMED Software Foundation, Inc
http://freemedsoftware.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to