Saturday, November 12, 2011

Re: Does the GWT "magic" ever fail you?

@Samyem -- Good point about the async RPC...we also had that issue
when debugging and/or integration testing Flex/Actionscript.

@Jeff -- Your metaphore is correct...to continue it, I'd say I trust
my Java/C++/C# compilers a lot. My concern is exactly whether or not
the GWT compiler has issues. Do you disable optimizations during
development or is that for production code too?

@Thomas - Sourcemap is incredible if it works as advertised....is
that how Eclipse keeps the Java debugger "in sync" with the browser
Javascript execution?

Thanks everyone for your answers.

Dave

On Nov 12, 4:52 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> Most of the time, you'll be debugging in DevMode, against your Java code,
> within your Java IDE, using any Java debugger.
>
> GWT 2.5 will generate SourceMaps so you can see your Java code in your
> browser's dev tools, set breakpoints in the Java code to pause the JS
> engine, etc.
> Seehttps://plus.google.com/110412141990454266397/posts/iqXo5AyHkydandhttp://www.2ality.com/2011/07/firefox-sourcemap.html
>
> In the mean time, or in browsers where SourceMaps aren't supported, GWT
> generates symbolMaps that allow you to find where an obfuscated function
> name comes from in your Java code. It can also be used to automatically
> deobfuscate stack traces (so you can, for instance, send a client-side
> exception to the server for logging –using java.util.logging and the
> SimpleRemoteLogHandler or RequestFactoryLogHandler–, and have the
> stacktrace automatically deobfuscated in your logs). You can also use the
> StackTraceDeobfuscator "manually" on the server-side; or look-up in the
> symbolMaps by yourself (I regularly do it when I can't reproduce a bug in
> DevMode).
> It's important to note that symbolMaps only map methods, whereas SourceMaps
> map down to the expression level.
>
> So no, it's not a problem.
>
> Also, if your application is "big enough", even if you use "plain
> JavaScript" instead of GWT, you'll want to use a "JS compiler" (such as the
> Closure Compiler) or "JS minifier"; so you'll have the same "issues". The
> Closure Compiler generates SourceMaps, but I don't think any compiler but
> GWT produces the equivalent of the symbolMaps and have the equivalent of
> the StackTraceDeobfuscator.

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate