简体   繁体   English

GWT-调试异步方法调用

[英]GWT - debugging asynchron method call

I want to debugg a server side method that is called over my AsyncService from my GWT application. 我想调试从我的GWT应用程序通过AsyncService调用的服务器端方法。 The method is in the interface. 该方法在界面中。 I call it in my EntryPoint calss like that: 我在我的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");
    }
});

My problem is, that the debugger just jumps over the method. 我的问题是,调试器仅跳过该方法。 It isn't going into the implementation class of my interface. 它不会进入我的界面的实现类。 Is it possible to debug inside this function in the server package? 是否可以在服务器软件包中的此功能内进行调试?

As per your comments your server side classes are not considering the changes. 根据您的评论,服务器端类未考虑更改。

Please try it again after removing all the generated stub and re-compiling the project again. 删除所有生成的存根并重新编译项目后,请重试。 I have highlighted all the stubs that needs to be deleted as shown in below snapshot. 我已经突出显示了所有需要删除的存根,如下面的快照所示。

在此处输入图片说明


-- EDIT -- -编辑-

Try to inspect the RPC calls using Firefox Firebug plugin as shown below : 尝试使用Firefox Firebug插件检查RPC调用,如下所示:

在此处输入图片说明

I finally found out. 我终于找到了。 It semms that tomcat doesn't support server sided debugging. 似乎tomcat不支持服务器端调试。 I tried it with the Google AppEngine and it works just fine. 我在Google AppEngine上进行了尝试,效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM