在开发模式之外调试GWT应用程序? [英] Debugging GWT applications outside of dev mode?

查看:108
本文介绍了在开发模式之外调试GWT应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎记得看到有人在屏幕录像中将Java调试器附加到编译/部署的GWT应用程序中。这可能吗?我发现了一些稀疏的提到配置一个特殊的调试模块,它可以扩展你的常规模块,但细节很少。



谢谢!

$ b $你可以使用dev模式来调试已部署的应用程序,但是你将使用当前代码(来自eclipse)而不是已部署的代码进行调试。怎么样?就像在本地主机上调试一样,更改url并完成它:

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



这可以让你调试真实数据和以前部署的gwt服务(或ejb bean和其他东西)在环境中发生的实际问题。请记住,您不是调试编译的gwt代码,您正在调试您在启动dev模式时使用的代码。您当然可以调试部署到服务器的应用程序的版本(通过从源代码管理系统中检查该版本),但是没有办法真正调试我知道的java(1)中的javascript。



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


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!

解决方案

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/

这篇关于在开发模式之外调试GWT应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆