Saturday, August 9, 2014

Source maps for stack traces in other JVM languages

I am looking to adding GWT support for Mirah (a JVM language that compiles to bytecode).  The strategy I'm looking at is to use a decompiler to convert the bytecode in to Java source, then use GWT to compile the resulting Java source.

I would like to be able to see the original line numbers of the mirah source files in stack traces rather than the line number of the java source.  Is there a way to tap into how GWT generates the stack traces so that I can modify them to show the mirah source instead of the java source?  Even if there is just a hook that provides me with the raw java stack trace, I should be able to map the java line numbers to mirah source myself.  I just don't know what the best way to hook into the stack traces at runtime would be (or if it's even possible).

Thanks for any advice or pointers you can provide.

Steve

--
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+unsubscribe@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/d/optout.

No comments:

Post a Comment