我是gwt的新手.我不知道如何启动Super Dev模式.我需要一步一步详细说明.
我已经尝试通过添加来编辑gwt.xml文件
<add-linker name="xsiframe"/>
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
<set-property name="compiler.useSourceMaps" value="true" />
Run Code Online (Sandbox Code Playgroud)
但我无法理解这一点.
我有很多问题让Super Dev模式与IntelliJ一起工作.这个问题,以及我在下面的回答,是为了记录如何做到这一点,对于将来可能会遇到这个问题的任何人(以供我自己参考):
经过很多痛苦,终于安装GWT 2.5了我的Eclipse kepler
现在我可以使用Dev模式启动,即 Classic Dev Mode.
通过Eclipse aruguments选项卡中的调试配置.
-remoteUI"$ {gwt_remote_ui_server_port}:$ {unique_id}" - startupUrl index.html -logLevel INFO -codeServerPort 9997 -port 8888 -war E:\ GWT2.5_Test\V4Workflow_V17\war com.suresh.V4Workflow
当我调试Eclipse生成的URL时
http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997
Run Code Online (Sandbox Code Playgroud)
哪个好.能够调试我的代码.
实际问题从这里开始:
我急切地等待以超级开发模式启动我的应用程序.
超级开发模式在Web服务器中运行GWT编译器,Web服务器是开发人员可以从命令行运行的普通Java应用程序.服务器启动后,会打印其URL:
代码服务器已准备就绪.接下来,访问:
http://localhost:9876/
在gwt.xml文件中添加了以下两行
<add-linker name="xsiframe"/>
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
Run Code Online (Sandbox Code Playgroud)
我编译了这个项目然后我http://localhost:9876/ 没有发生任何事情.
奇怪的是,没有在docs中建立配置指南.
我在这里缺少什么?
谢谢你的任何线索.
我正在使用GWT Super Dev,我在Chrome中激活了源地图.虽然我可以在Sources选项卡中看到Java类,但我无法弄清楚如何查看未处理异常的完整堆栈跟踪.
那我该怎么做?
每次我将我的GWT应用程序部署到appengine并尝试访问它时,我会得到白色加载屏幕,然后在大约20-30秒后我收到此消息:

我使用maven与gwt-maven-plugin和appengine-maven-plugin.使用maven-gae-plugin进行部署可以得到相同的结果.
如果我切换回使用2.6.1版本的gwt和gwt-maven-plugin它部署好了,所以它似乎与自动开发模式启动器有关.
<build>
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/super</directory>
</resource>
<resource>
<directory>${project.build.directory}/generated-sources/apt</directory>
</resource>
<resource>
<directory>${project.build.directory}/generated-sources/gwt</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${target.jdk}</source>
<target>${target.jdk}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<proc>none</proc>
</configuration>
</plugin>
<!-- JUnit Testing - skip *.GwtTest cases -->
<!-- 'mvn test' - runs the Jukito tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/*GwtTest.java</exclude>
<exclude>**/*JUnitTest.java</exclude>
</excludes>
</configuration>
</plugin>
<!-- GWT -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt-maven-plugin.version}</version>
<configuration> …Run Code Online (Sandbox Code Playgroud) gwt google-app-engine maven gwt-maven-plugin gwt-super-dev-mode
SuperDevMode但是,当http://localhost:9876/访问URL:时我试过了
并Dev Mode On点击,我得到这个:
Can't find any GWT Modules on this page.
Run Code Online (Sandbox Code Playgroud)
我能错过什么?我已经做了
$mvn gwt:compile
$mvn gwt:run-codeserver
Run Code Online (Sandbox Code Playgroud)
我在POM中有这些版本:
<gwt.version>2.5.0</gwt.version>
<gwt.maven.version>2.5.0</gwt.maven.version>
Run Code Online (Sandbox Code Playgroud)
我是否需要更新GWT版本或GWT Maven版本?或者我错过了什么?
到目前为止,在GWT super dev模式下调试似乎是一个真正的痛苦.如果有任何错误,则没有堆栈跟踪,只是在chrome控制台中给出了一个神秘的消息.有没有办法让所有错误打印堆栈跟踪,比如开发模式?
我相信我已经有源地图,因为如果我在Chrome的开发工具中找到Sources,我可以看到我的java类的源代码.
正如标题所说,我试图在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="devModeRedirectEnabled" value="true"/>
<set-property name="compiler.useSourceMaps" value="true" />
我不确定我还缺少什么?从我在网上找到的各种资源看来,我的所有基础都已覆盖,所以我不确定为什么源地图不会出现.
我已经按照本页面给出的步骤 - 使用superdevmode开始了
但我仍然收到消息 - 在此页面上找不到任何GWT模块.我做了一些谷歌搜索,但直到现在都找不到任何解决方案.
我在ubuntu上使用GWT 2.6.1和eclipse kepler 64位.
这是我做的步骤.
<add-linker name="xsiframe"/>.我也尝试过添加devModeRedirectEnabled属性.它没有帮助.将应用程序作为Web应用程序运行 默认的jetty配置服务于应用程序
http://localhost:8888/SuperDev.html.我在firefox中打开了这个页面.我可以看到页面内容.
启动Java应用程序配置.它再次编译并给出成功消息并告诉我启动
http://localhost:9876/
我在firefox中打开它,它显示 - 
将开发模式拖动到firefox的书签.然后点击.
以下是我的superdev模式java应用程序的配置.我错过了什么吗?



我们最近决定将Material Design集成到我们成熟的GWT应用程序中,这最终迫使我们从Legacy dev Mode转到Super dev模式.我们使用Chrome和Intellij IDE,2016.2可以很好地工作.但是,一个挥之不去的问题是在调试器中查看Java容器(列表,地图等).在下面的屏幕截图中,两个扩展的supportsCopyWidgetPresenters和supportsCopyEventPageBlockContentElements都声明为java.util.Lists:
如果这很难读,调试器会显示两个列表值:
array =内部错误:com.google.gson.JsonParseException:预期BEGIN_ARRAY但在第1行第1386行是BEGIN_OBJECT
是否有一个特殊的参数我需要传递给超级开发模式,让它在调试器中正确解释列表(和地图)?这是告诉超级开发模式使用不同的JSON解析器吗?
任何帮助是极大的赞赏!
gwt ×10
java ×5
debugging ×2
maven ×2
gwt-2.5 ×1
gwt-dev-mode ×1
gwt-rpc ×1
gwt2 ×1
source-maps ×1