问题描述
我正在使用超级开发模式,Java 8和Eclipse Photon在Eclipse中调试GWT。我已经在代码的客户端放置了断点,但是似乎没有一个触发。
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"?
推荐答案
如果您使用GWT的Super Dev Mode,则调试将完全在浏览器中完成,Super Dev Mode将提供源映射,以了解您当前在 Java代码中的位置。您必须使用Chrome的Developer-Tools并在其中设置断点。
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.
此处提供了有关如何使用Chrome调试功能的教程:
Here is a tutorial how to use the Debugging-Feature of Chrome:https://developers.google.com/web/tools/chrome-devtools/javascript/
这篇关于Super Dev模式下的客户端GWT调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!