Friday, June 9, 2017

Re: Any issues running in detailed (or pretty) style in production?

We've done this for a long time now, and it does indeed work well. You don't get the exact line numbers, but rather the first line number of the method it's in, but that's usually enough. We also have an extra permutation for a "debug" build that sets compiler.stackMode to emulated. I set it up so you have to point your web browser at a different landing page to get this permutation, so customers don't normally see it. However, it's easy to use it ourselves (in testing or production) or to point somebody at it if we need more accurate stack traces.

We always ship the standard and debug versions with every release, so we can always use the debug version that's the equivalent of what's in production.

Paul

On Fri, Jun 9, 2017 at 8:38 AM, Jens <jens.nehlmeier@gmail.com> wrote:

No, because I just figured the obfuscated code wasn't worth trying to deobfuscate, but apparently symbolMaps is the key.  Kirill provded the details so I plan to refer to that.  Thanks for the time!

As a future improvement: You could send any client side exception to the server using the GWT UncaughtExceptionHandler and then let the server deobfuscate the exception (SymbolMaps/SourceMaps + StackTraceDeobfuscator) and log it. Alternatively the deobfuscated exception could also be send via mail (possibly encrypted) to a bug tracker or similar. Works pretty well.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment