On Monday, April 2, 2012 10:17:15 AM UTC+2, Honza Rames wrote:
Thanks cool, this way it works just fine, I also had to symlink my java sources so the browser could access them, you can do this by creating a symlink to you com (org or whatever package you use as base) in you war/<project-name> folder (where the cache.htmls are generated and where you copy source maps to). It would probably be a lot better to have a servlet that can handle fetching the sources and also a modified linker that adds the sourceMappingURL to the generated JS (I guess this gets more complicated when code splitting is in play).
It's also only used for stack-trace deobfuscation (as is said on the wiki page), which is why it doesn't Just Work™ with Chrome's Developer Tools' support for Source Maps (no //@ sourceMappingURL=…, and the generated artifacts are not publicly accessible)
It also won't work if you use the experimental Closure Compiler backend.