Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug GWT using IntelliJ

I am a question about how to debug GWT using IntelliJ.

I have got a maven GWT project which I can debug in IntelliJ. However, once I changed some GWT class, I have to manually compile it in order for it to take effects.

I know in Eclipse, once a GWT class is changed, by refreshing the web page will automatically update the generated javascript. But IntelliJ doesn't seem to do the same.

Did I misconfig something? Does anyone develop GWT using IntelliJ?

Many thanks.


1 Answers

The usual way of debugging GWT code is using "Out Of Process Hosted Mode", where there is no javascript involved and instead hosted mode communicates to the browser via an extension and dictates how to change the DOM.

See https://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM.

If you are using this, IntelliJ is running/debugging a Java server just like any other. Changes to the classes in your project should be hotloaded into a debugged JVM when you save (I assume IntelliJ supports that).

like image 167
sjr Avatar answered Sep 14 '26 21:09

sjr