Debugging GWT applications outside of dev mode?

醉酒当歌 提交于 2020-01-01 12:09:12

问题


I seem to recall seeing someone attach a Java debugger to a compiled / deployed GWT application in a screencast. Is this possible? I'm finding some sparse mentions of configuring a special "debug module" that extends your regular one, but details are thin.

Thanks!


回答1:


You can use dev mode to debug deployed application BUT you will debug using your current code (from eclipse) instead of the deployed one. How? Just like with debugging on localhost, change url and it's done:

http://your-test-or-production-or-sth-server.com/application.html?gwt.codesvr=localhost:9997

This will let you debug real problems happening in the environment with real data and previously deployed gwt services (or ejb beans and other stuff). Just remember, that you are not debugging compiled gwt code, you're debugging the code you have used when starting dev mode. You can of course debug the version of the application deployed to the server (by checking out that version from your source control system), but there is no way to actually debug javascript in java (1) that I know of.

(1) - http://code.google.com/p/chromedevtools/



来源:https://stackoverflow.com/questions/5758741/debugging-gwt-applications-outside-of-dev-mode

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