Jens, even with source maps in Chrome, I've been unable to get stack traces to work. They still print out poorly in production when an exception is hit - the exceptions ignore the source maps entirely. I asked previously if there is a way around it, but apparently it's a known issue - so I don't think SourceMaps solve this problem yet.
That said, the size and speed overhead here is terrible and most people would avoid something that adds that much overhead in production (although it would be great in development). What GWT needs here is something closer to what you get with proguard - a mapping file created during compilation that could be used to run the obfuscated/javascript exception through a utility to give the correct stack trace with zero overheads. I'm not entirely sure on how proguard accomplishes it, but I'd say it would be the perfect solution. On Thursday, July 18, 2013 1:40:31 AM UTC+2, Jens wrote: > > Do you plan to maintain that code if it is integrated into GWT or will it > be a one time contribution and other people have to wrap their head around > it again if your solution needs to be adjusted? > > I ask this because GWT will drop support for IE6/7 relatively soon and > probably by the end of 2014 drop support for IE8. Also Opera has switched > to Blink/V8 which makes the opera permutation obsolete in the near future. > So by the end of 2014 (GWT 3.x) Firefox, Safari, Chrome and Opera are > likely to support SourceMaps and in case of IE9+ stack trace emulation is > probably not needed. > > So by the end of next year a bunch of your code can probably be deleted > and other code refactored/optimized to fit this situation. Have you thought > about that? > > -- J. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.