在我的GWT应用程序,我有类似http://www.summa-tech.com/blog/2012/06/11/7-tips-for-exception-handling-in-gwt/在生产模式下启用GWT.UncaughtExceptionHandler
// Handle all exception errors
GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
@Override
public void onUncaughtException(Throwable e) {
Window.alert("caught it!");
}
};
错误记录此代码完全在主机模式,但在生产模式中的文件描述了它是编出来。有没有办法让这段代码进入生产模式?
文档GWT.setUncaughtExceptionHandler http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.UncaughtExceptionHandler.html
干杯,
你是对的谢谢你 – user1256378 2013-03-07 21:57:55