How to debug using superdev mode?

2019-07-01 14:56发布

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

enter image description here

1条回答
相关推荐>>
2楼-- · 2019-07-01 15:28

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.

查看更多
登录 后发表回答