已启用GWT SuperDev模式,已启用源地图,已编译,但不显示源地图 [英] GWT SuperDev mode enabled, source maps enabled, compiled, yet no source maps appear

查看:157
本文介绍了已启用GWT SuperDev模式,已启用源地图,已编译,但不显示源地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所说,我试图在Chrome中使用最新版本的GWT(2.6.1)来运行SuperDev模式。

我的应用程序由Tomcat服务器提供服务。我有SuperDev模式服务器运行(通过IntelliJ),它成功地编译和链接源代码,并且在Chrome中启用源地图。我转到应用程序( http:// localhost:8081 / example /#example )。加载时,我使用DevMode On书签进行编译。编译完成后,我在Chrome开发人员工具中看不到任何Java源代码。



我的应用程序中还设置了以下属性 .gwt.xml



< add-linker name =xsiframe/>
< set-configuration-property name =devModeRedirectEnabledvalue =true/>



当然还有什么我错过了?从我在网上找到的各种资源中,看起来我已经覆盖了所有的基础,所以我不确定为什么源地图不会显示出来。

解决方案

问题可能在于您的 .gwt.xml 排列,但SuperDevMode无法为多个版本的代码提供源映射。检查SuperDevMode进程的日志 - 它应该有相应的消息。



所以,试着让你的模块位于 .gwt.xml

code>只产生一个排列。如果只使用标准的GWT库,那就足够了。

 < set-property name =user.agent value =safari/> 

对于GXT驱动的项目,请使用以下代码:

 < set-property name =gxt.user.agentvalue =chrome/> 

对于MGWT驱动的项目,请尝试使用以下行:

 < set-property name =user.agentvalue =safari/> 
< set-property name =mgwt.osvalue =desktop/>

由于只有一个置换的正面副作用将是您的最短重新编译时间项目,当你开发它;)

希望这有助于。


As the title says, I'm attempting to run SuperDev mode using the latest version of GWT (2.6.1) in Chrome.

My application is being served by a Tomcat server. I have the SuperDev mode server running (via IntelliJ), which compiles and links the sources successfully, and source maps are enabled in Chrome. I go to the application (http://localhost:8081/example/#example). When it loads, I compile using the DevMode On bookmark. When it's done compiling, I don't see any Java sources in the Chrome developer tools.

I also have the following properties set in my applications .gwt.xml

<add-linker name="xsiframe"/> <set-configuration-property name="devModeRedirectEnabled" value="true"/> <set-property name="compiler.useSourceMaps" value="true" />

I'm not sure what else I'm missing? From the various resources I've found online, it appears I have all of my bases covered, so I'm not sure why the source maps won't show up.

解决方案

The problem likely is that your .gwt.xml allows several permutations, but SuperDevMode cannot provide source map for several versions of code. Check the logs of SuperDevMode process - it should have corresponding message there.

So, just try to make your module in .gwt.xml produce only one permutation. If you use standard GWT libs only, it would be enough to place there

<set-property name="user.agent" value="safari" />

For GXT-driven project, use this one instead:

<set-property name="gxt.user.agent" value="chrome" />

For MGWT-driven project try to use these lines:

<set-property name="user.agent" value="safari"/>
<set-property name="mgwt.os" value="desktop" />

As a positive side-effect of having only one permutation will be the shortest re-compiling time for your project when you develop it ;)

Hope this helps.

这篇关于已启用GWT SuperDev模式,已启用源地图,已编译,但不显示源地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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