我一直在尝试使用Netbeans来破解使用gwt-maven-plugin 2.7.0构建的项目的客户端代码。 我的开发环境:win7 64bits,java 7.0.60,netbeans 8.01
我使用gwt-maven-plugin工件构建裸机项目,进行maven clean安装,然后gwt:debug,所有(devmode / jetty)正确启动(没有可见错误),我可以进入服务器端代码,但就客户端断点而言,它只有在我使用Eclipse + Google插件时才有效...对于netbeans没有运气。
知道出了什么问题吗?
供您参考,请在下面找到Netbeans中我的gwt:debug的输出。
非常感谢您的反馈和专业知识。
此致
kb的
cd C:\DN\MyApp; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_60" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.1\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 gwt:debug\""
Scanning for projects...
------------------------------------------------------------------------
Building GWT Maven Archetype 1.0-SNAPSHOT
------------------------------------------------------------------------
>>> gwt-maven-plugin:2.7.0:debug (default-cli) @ MyApp >>>
--- gwt-maven-plugin:2.7.0:generateAsync (default) @ MyApp ---
--- maven-resources-plugin:2.5:resources (default-resources) @ MyApp ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources
--- maven-compiler-plugin:2.3.2:compile (default-compile) @ MyApp ---
Nothing to compile - all classes are up to date
<<< gwt-maven-plugin:2.7.0:debug (default-cli) @ MyApp <<<
--- gwt-maven-plugin:2.7.0:debug (default-cli) @ MyApp ---
starting debugger on port 8000 in suspend mode
create exploded Jetty webapp in C:\DN\MyApp\target\MyApp-1.0-SNAPSHOT
Listening for transport dt_socket at address: 8000
Super Dev Mode starting up
workDir: C:\Users\myname\AppData\Local\Temp\gwt-codeserver-6759665201993273993.tmp
Loading Java files in com.mycompany.myapp.MyApp.
Module setup completed in 4879 ms
The code server is ready at http://127.0.0.1:9876/
GET /recompile/MyApp
Job com.mycompany.myapp.MyApp_1_0
starting job: com.mycompany.myapp.MyApp_1_0
binding: user.agent=safari
Compiling module com.mycompany.myapp.MyApp
Unification traversed 16789 fields and methods and 1580 types. 1548 are considered part of the current module and 1548 had all of their fields and methods traversed.
Compiling 1 permutation
Compiling permutation 0...
Linking per-type JS with 1532 new types.
prelink JS size = 2512880
prelink sourcemap = 2512880 bytes and 73220 lines
postlink JS size = 2384562
postlink sourcemap = 2384562 bytes and 69785 lines
Source Maps Enabled
Compile of permutations succeeded
Compilation succeeded -- 7.911s
Linking into C:\Users\myname\AppData\Local\Temp\gwt-codeserver-6759665201993273993.tmp\com.mycompany.myapp.MyApp\compile-2\war\MyApp; Writing extras to C:\Users\myname\AppData\Local\Temp\gwt-codeserver-6759665201993273993.tmp\com.mycompany.myapp.MyApp\compile-2\extras\MyApp
Link succeeded
Linking succeeded -- 0.824s
8.817s total -- Compile completed
答案 0 :(得分:3)
GWT 2.7的DevMode默认使用SuperDevMode(正如你在日志中看到的那样),而不是&#34;经典的DevMode&#34;使用浏览器插件。
使用SuperDevMode,您可以使用源映射在浏览器中调试客户端代码,或者在IDE中通过远程调试浏览器来调试(例如,在Eclipse中使用SDBG)。
要回滚到#34;经典DevMode&#34;,请使用<superDevMode>false</superDevMode>
配置您的gwt-maven-plugin或将-Dgwt.superDevMode=false
传递给Maven。
见http://mojo.codehaus.org/gwt-maven-plugin/debug-mojo.html#superDevMode