Client Side GWT Debugging in Super Dev Mode

旧时模样 提交于 2019-12-24 10:59:35

问题


I was debugging a GWT in Eclipse using "Super Dev Mode", Java 8, and Eclipse Photon. I've put breakpoints in the client side of the code, but none of them seem to trigger.

I'm reading the documentation, but it appears to relate to "Legacy Dev Mode" debugging. http://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html

Does anyone have any recommendations to "step through" client side code with "Super Dev Mode"?


回答1:


If you use GWT's Super Dev Mode, debugging is done completely in the browser and the Super Dev Mode provides sourcemaps to know where in your "Java"-code you currently are. You have to use e.g. Chrome's Developer-Tools and set breakpoints there.

Here is a tutorial how to use the Debugging-Feature of Chrome: https://developers.google.com/web/tools/chrome-devtools/javascript/




回答2:


Use the GWT eclipse plugin by Branflake : https://github.com/gwt-plugins/gwt-eclipse-plugin

Check out his youtube tutorial videos linked from the github page : https://www.youtube.com/watch?v=DU7ZQVLR5Zo&list=PLBbgqtDgdc_TqzA-qXrjgTFMC_6DKAQyT

With this plugin you can debug from within Eclipse with SuperDevMode.

Another option is to use the Ultimate (not free) version of IntelliJ. This has GWT support built in including debugging from within the IDE.



来源:https://stackoverflow.com/questions/52267067/client-side-gwt-debugging-in-super-dev-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!