GWT MySampleApplication debugging and deployment

In Idea 10.0 using GWT 2.1.1 I created MySampleApplication.  AS a test, I arbitrarily set breakpoints on just about every statement, including in lines 37 & 38

RootPanel.get("slot1").add(button);
RootPanel.get("slot2").add(label);

It takes 45 seconds for the first breakpoint to be hit.  (Seems a long time for so trivial an application.)  If I hit F8 to step to the next instruction (which had also been set as a breakpoint) the debugger hangs.  It never returns.  If instead, from the first breakpoint, I hit F9 then it will immediately stop at the next instruction as expected.

Likewise, if I click on the browser "click me" button that the application presents, I will correctly stop at the next breakpoint on line 25

MySampleApplicationService.App.getInstance().getMessage("Hello, World!", new MyAsyncCallback(label));

If I hit F8 again the application hangs.  However, an F9 instead of an F8 would correctly go to the next breakpoint.

If I hit F9 through all the breakpoints in the application, and then go through the application again hitting F8 everything works correctly.  So something odd is happening the first time.

Also, does anybody know if there are any deployment instructions for this sample application.  I don't seem to have done it right.  It is a nice sample that shows well the GWT directory structure, but it would be nice to have deployment instructions as well.

Thanks.

Rich

1 comment
Comment actions Permalink

I cannot reproduce the problem. Which OS and browser do you use?

In Idea 10.0 using GWT 2.1.1 I created MySampleApplication.  AS a test, I arbitrarily set breakpoints on just about every statement, including in lines 37&  38

>

RootPanel.get("slot1").add(button);
  RootPanel.get("slot2").add(label);

>

It takes 45 seconds for the first breakpoint to be hit.  (Seems a long time for so trivial an application.)  If I hit F8 to step to the next instruction (which had also been set as a breakpoint) the debugger hangs.  It never returns.  If instead, from the first breakpoint, I hit F9 then it will immediately stop at the next instruction as expected.

>

Likewise, if I click on the browser "click me" button that the application presents, I will correctly stop at the next breakpoint on line 25

>

MySampleApplicationService.App.getInstance().getMessage("Hello, World!", new MyAsyncCallback(label));

>

If I hit F8 again the application hangs.  However, an F9 instead of an F8 would correctly go to the next breakpoint.

>

If I hit F9 through all the breakpoints in the application, and then go through the application again hitting F8 everything works correctly.  So something odd is happening the first time.

>

Also, does anybody know if there are any deployment instructions for this sample application.  I don't seem to have done it right.  It is a nice sample that shows well the GWT directory structure, but it would be nice to have deployment instructions as well.

>

Thanks.

>

Rich

>

---
Original message URL: http://devnet.jetbrains.net/message/5283159#5283159



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.