How to debug using superdev mode?

两盒软妹~` 提交于 2019-12-12 14:36:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!