Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome doesn't load gwt source maps

Recently chrome stopped to show Source Maps.

I had a some break with my project and now with the new version of gwt and chrome I don't see java sources in source tab.

I'm using super dev mode. Compiled file (*.cache.js) that I receive from Code Server contains header for Source Maps:

X-SourceMap:/sourcemaps/Simulation/gwtSourceMap.json

Code Server doesn't print that it has sent Source Maps (as it was before), only that Compilation was successful

I have: gwt version 2.5.0 Chrome verson 25.0.1364.172 Ubuntu 12.04 LTS (but the problem is reproduced in Windows and MacOS as well)

like image 380
ichaki5748 Avatar asked Mar 17 '13 11:03

ichaki5748


People also ask

How do I enable source maps?

To enable source maps in Google Chrome, go to Developer Tools, click the little cog icon, and then make sure that “Enable Javascript source maps” is checked. That's it.

How to run GWT project in Super Dev Mode?

Start by right clicking on a project and running the “Web Application (GWT SDM)” shortcut, which will create a new launch configuration. This produces a Development Mode tab that contains a quick link to load the browser for debugging. Once the browser initializes, it will start the first Super Dev Mode compiling.

What is GWT Dev Mode?

Like its predecessor (which I'll call classic Dev Mode), Super Dev Mode allows GWT developers to quickly recompile their code and see the results in a browser. It also allows developers to use a debugger to inspect a running GWT application.


1 Answers

I guess you hit https://code.google.com/p/google-web-toolkit/issues/detail?id=7725

Try to update to 2.5.1.

like image 146
Andrea Boscolo Avatar answered Oct 05 '22 12:10

Andrea Boscolo