Friday, June 24, 2016

How to debug GWT application on Eclipse

Hi GWT community. 
I am trying GWT since yesterday, and I'm following the first app tutorial on gwt official.
I'm at the debugging section and i can't figure it out to debug my code in eclipse. 

I followed each line of this tutorial, so this is what I've done : 
- Installed the last eclipse version (Version: Neon Release (4.6.0))
- Installed GWT pluggin for eclipse + sdk : Plugin for Eclipse 4.5 (Mars)
- Created the first app Stockwatcher from the eclipse pluggin (I didn't used webAppCreator or maven atm)
- Built my UI code

Until there, all is working fine. I use the run as Web Application (GWT Super Dev Mode) in eclipse and I see my app working in chrome at the http://127.0.0.1:8888/StockWatcher.html.

The problem I have now during the debugging part is, when I put some breakpoint in my code, I relaunched my app in the same mode (GWT Super Dev Mode) but my code never stopped on my breakpoint. So I tried to launch it with Debug as Web Application (GWT Super Dev Mode)... Same here : No stop on breakpoint. So I tried an other mode : Run/Debug as Web Application (GWT Classic Dev Mode), my generated url changed to http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997. But when I launched it in my chrome / FF, I got this popup : "Couldn't load stockwatcher from Supder Dev Mode server at http://127.0.0.1:9876. Please make sure this server is ready. Do you want to try again?"

What I did wrong ?

Thanks for your tips ;)

--
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