如何使用superdev模式进行调试? [英] How to debug using superdev mode?

查看:220
本文介绍了如何使用superdev模式进行调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循gwt教程并使用superdev模式。我在Chrome浏览器中看到java源地图,可以放置断点,但是我试图添加到watch表达式窗口的所有内容都无效。所以我的问题是如何使用superdev模式进行调试?



我已经创建了项目,如教程中所述



./ webAppCreator -out MyWebApp com.mycompany.mywebapp.MyWebApp



并运行



ant superdevmode



蚂蚁托管 $ b $ p
$ b

这里是屏幕截图,我在开发人员工具窗口中看到
正如你所看到的 - 变量closeButton和dialogBox没有定义



gwt版本 - 2.6.1



Chrome的版本 - 36.0.1985.125 m



解决方案

在源地图的当前状态中,不能使用原始语言的监视表达式(对于GWT,Java);你必须使用编译好的JavaScript名称(你可以在 Scope Variables 中看到),这是目前Source Maps的局限性之一( 和浏览器)。它会影响所有编译为JS的语言,而不仅仅是GWT。


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

解决方案

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.

这篇关于如何使用superdev模式进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆