4.7.3. Debugging Web Widgets
You can use GWT Super Dev Mode to debug web widgets on the browser side.
-
Setup the debugWidgetSet task in
build.gradle
. -
Deploy the application and start Tomcat.
-
Run the
debugWidgetSet
task:gradlew debugWidgetSet
The running GWT Code Server will recompile your widgetset on modification.
-
Open
http://localhost:8080/app?debug&superdevmode
in Chrome web browser and wait for the widgetset is built for the first time. -
Open the debug console in Chrome:
-
After changing the Java code in the
web-toolkit
module, refresh the web page in the browser. The widgetset will be rebuilt incrementally in approximately 8-10 seconds.