Monday, September 26, 2016

Re: How to debug server side code in Thomas Broyer GWT Maven Plugin

Thomas,

I am not very familiar with Maven in Eclipse. I use Eclipse 4.6. Once I run "Debug as… → Maven", I see there are a lot of choices such as 
Maven build
Maven build...
Maven clean
Maven generate-sources
Maven install
Maven test.

I cannot figure it out how. Can you give me step-to-step instruction? I am very familiar with how to debug GWT application not using Maven.

Thanks,

David

On Monday, September 26, 2016 at 8:44:53 AM UTC-4, Thomas Broyer wrote:

On Monday, September 26, 2016 at 1:40:47 PM UTC+2, David wrote:
Thomas,

Once I run "mvnDebug tomcat7:run -pl *-server -am -Denv=dev" from a command line, I just got the following message:
                                           Listening for transport dt_socket at address: 8000

This tells you on which port you'll attach the Java debugger. From Eclipse, you then create a debug launcher for a "remote application" and select the dt_socket transport and 8000 port. Once the Java debugger is connected, the execution is resumed.
It's actually easier to do a "Debug as… → Maven…" in Eclipse.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment