问题
I'm trying to follow gwt tutorial and to use superdev mode. I see java source maps in Chrome browser, can put breakpoints but everything what I tried to add to the "watch expresion" window - did not work. So my question is how to use superdev mode for debugging?
I have created project as described in the tutorial
./webAppCreator -out MyWebApp com.mycompany.mywebapp.MyWebApp
and run
ant superdevmode
ant hosted
here is screen-shot what I see in "developer tools" window As you can see - variables closeButton and dialogBox are not defined
version of gwt - 2.6.1
verison of Chrome - 36.0.1985.125 m
回答1:
In the current state of Source Maps, you cannot use "watch expressions" with the original language (Java in the case of GWT); you have to use the compiled-JavaScript names (the same you can see in Scope Variables)
This is a current limitation of Source Maps (and browsers). It affects all languages that compile to JS, not just GWT.
来源:https://stackoverflow.com/questions/25105469/how-to-debug-using-superdev-mode