GWT - 调试异步方法调用

时间:2014-04-19 07:24:01

标签: java debugging gwt

我想调试从我的GWT应用程序通过我的AsyncService调用的服务器端方法。该方法在界面中。我在我的EntryPoint calss中称它为:

service.loadData(file, new AsyncCallback<Void>() {

    @Override
    public void onFailure(Throwable caught) {
        System.out.println("loadData - failure");
    }

    @Override
    public void onSuccess(Void result) {
        System.out.println("loadData - success");
    }
});

我的问题是,调试器只是跳过了方法。它不会进入我的界面的实现类。 是否可以在服务器包中调试此函数?

2 个答案:

答案 0 :(得分:0)

根据您的意见,您的服务器端类不会考虑更改。

请在删除所有生成的存根并再次重新编译项目后再次尝试。我已经突出显示了需要删除的所有存根,如下面的快照所示。

enter image description here


- 编辑 -

尝试使用Firefox Firebug插件检查RPC调用,如下所示:

enter image description here

答案 1 :(得分:0)

我终于发现了。似乎tomcat不支持服务器端调试。我尝试使用Google App Engine,它运行得很好。

相关问题