I installed GWT 2.0.1, plus the GWT 2.0.1 plugin for Eclipse. I
generated a new, default project from the command-line, added it as an
Eclipse project, went to "Properties" and set the "Web Toolkit" to
2.0.1. I can debug it as a "Web Application" and it appears on the
new "Development Mode" panel in Eclipse.
I pasted the URL into Firefox and was prompted to install the plugin
-- OK. Restarted Firefox, the plugin seems to be talking to Eclipse
(if I stop Development Mode in Eclipse, the page is greyed out and
"GWT Code Server Disconnected" is displayed).
Debugging works fine in the *server* code: I can set breakpoints in
GreetingServiceImpl.java and step, etc. But if I set a breakpoint in
the *client* code (such as the sendNameToServer() method) the code
runs but the breakpoints are never hit.
System: Eclipse 3.5, Fedora 11, Java "1.6.0_0" "build 14.0-b16".
Thanks,
Dave
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Thanks for your advice. I found that breakpoints work in the
onModuleLoad() method, but not in any asynchronous callback code.
--
Actually I found the problem. I was setting the breakpoint on the
method definition line, i.e.:
public void onSuccess(String result) {
Those breakpoints never hit. If I place breakpoints on any lines
*within* that method, they hit just fine.
Note that under normal circumstances if you put a breakpoint on a
method line, execution will break at the immediately following line.
It seems that client-side asynchronous GWT code doesn't behave that
way. I wouldn't consider this to be a serious issue: just something
to be aware of.
Thanks for your advice.
Dave
--
I see no errors in firebug or anywhere in eclipse.
The method that accepts the callback is a native js method. the js
calls the callback onSuccess.
With compiled code, I can see this actually works, but running in
development mode, i cannot get the callback to fire at all.
please advise.
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.