[英]client-side breakpoints for GWT maven project work in Eclipse but not Netbeans
我一直在Netbeans中尝试闯入使用gwt-maven-plugin 2.7.0构建的项目的客户端代码。 我的开发环境:win7 64bits,java 7.0.60,netbeans 8.01
我使用gwt-maven-plugin工件构建了准项目,进行了maven全新安装,然后进行了gwt:debug,一切(devmode / jetty)都正确启动(无可见错误),我可以闯入服务器-边代码,但就客户端断点而言,它仅在使用Eclipse + Google插件的情况下有效... netbeans运气不好。
知道有什么问题吗?
供您参考,请在Netbeans中找到我的gwt:debug的输出。
非常感谢您的反馈和专业知识。
问候
千位
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
GWT 2.7的DevMode默认使用SuperDevMode(如您在日志中看到的),而不是使用浏览器插件的“经典DevMode”。
使用SuperDevMode,您可以使用源映射在浏览器中调试客户端代码,或者通过远程调试浏览器(例如在Eclipse中使用SDBG )在IDE中调试客户端代码。
要回滚到“经典DevMode”,请使用<superDevMode>false</superDevMode>
配置gwt-maven-plugin或将-Dgwt.superDevMode=false
传递给Maven。
参见http://mojo.codehaus.org/gwt-maven-plugin/debug-mojo.html#superDevMode
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.