3

I´m running my MGWT Project with SuperDevMode on a code server.

For debugging they they said i should use Chrome and "enable source maps" in the Chrome Developer Settings. But in the Developer Settings i can only find "Enable JavaScript Source maps" and "Enable css Source maps". Both are enabled but i still can´t see .java files there.

I´m using Chrome Version 42.

How can i enable the Sourcemaps for debugging in Chrome?

Solved: Switched from Chrome Canery to Chrome and used gwt 2.5.1 instead of 2.5.0!

Simon B.
  • 81
  • 1
  • 10
  • Enable JavaScript Source maps is the right one, it will map the javascript to whatever source it is generated from. The problem is somewhere else probably. What webserver are you using? – Martijn Wijns Feb 13 '15 at 06:37
  • I´m starting the Codeserver from Eclipse on localhost:9876. In Chrome developer tools under sources, is localhost:9876 listed, but under this directory i can only find _.js_ files. Is it than a mapping error? or is it possibly a problem, because i´m using mgwt? – Simon B. Feb 16 '15 at 12:16
  • Did you try enabling SuperDevMode using the bookmarklets? – Martijn Wijns Feb 16 '15 at 12:26
  • yes i have the bookmarks for enable on / off. It compiles fine, i can use my application. The problem is that i can´t debug. – Simon B. Feb 16 '15 at 12:34
  • Ok, and if you use CTRL+O to find source files, does it show java files? – Martijn Wijns Feb 16 '15 at 12:55
  • No there are only _.js_ files. Here a screenshot of my console: ![Screenshot](http://i.imgur.com/OML7g35.png) – Simon B. Feb 16 '15 at 14:10
  • I have the same problem, anyone had a solution? – Ahmed Hamdy Nov 07 '19 at 08:52

1 Answers1

1

open the console, click the settings button.

There you will find a checkbox "enable JavaScript Source Maps". This box must be checked.

enter image description here

El Hoss
  • 3,767
  • 2
  • 18
  • 24