簡體   English   中英

GWT maven項目的客戶端斷點在Eclipse中起作用,但在Netbeans中不起作用

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM