GWT 2.0: Debug with Firefox and Eclipse

340 views
Skip to first unread message

y

unread,
Jan 5, 2010, 1:45:08 PM1/5/10
to Google Web Toolkit
When GWT was working with its internal browser, debugging from Eclipse
was simple. I just marked the breakpoints and ran as debug. However,
it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I
missing?

Thanks

y

unread,
Jan 5, 2010, 8:52:08 PM1/5/10
to Google Web Toolkit
Anyone managed to debug with GWT 2.0? I don't get a prompt to install
the developer plugin. Even when I installed it manually, nothing
happens. Breakpoints just don't halt the running.

Mac 10.6 (updated to the latest), Eclipse 3.5.1, Java 1.6.0
Tried with the latest stable Firefox and Chrome

Ashar Lohmar

unread,
Jan 6, 2010, 8:32:29 AM1/6/10
to Google Web Toolkit
do you have the "?gwt.codesvr=localhost:9997" added to your urls?!
usually that's the problem ... if you do have the parameter and still
no debuging ... then i don't know

Rogério Valente

unread,
Jan 6, 2010, 10:25:38 AM1/6/10
to Google Web Toolkit
Check if the message below is on console output.

[WARN] The class com.google.gwt.dev.HostedMode is deprecated and will
be removed --
use com.google.gwt.dev.DevMode instead.

If the message is present on your console, change your main class from
com.google.gwt.dev.HostedMode to com.google.gwt.dev.DevMode.
And if the problem persist, check the Compile & Debug tips in this
url : http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode

I did make the upgrade to 2.0 version and the debug is working
fine. :-)

Cheers.

y

unread,
Jan 6, 2010, 1:00:27 PM1/6/10
to Google Web Toolkit
I opened a new project and it works fine. I am still trying to migrate
existing project. Any idea what I may be missing? I already switched
the SDK to 2.0

On Jan 6, 7:25 am, Rogério Valente <rogerio.vale...@gmail.com> wrote:
> Check if the message below is on console output.
>
> [WARN] The class com.google.gwt.dev.HostedMode is deprecated and will
> be removed --
> use com.google.gwt.dev.DevMode instead.
>
> If the message is present on your console, change your main class from
> com.google.gwt.dev.HostedMode to com.google.gwt.dev.DevMode.
> And if the problem persist, check the Compile & Debug tips in this

> url :http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideCompi...

y

unread,
Jan 6, 2010, 1:13:28 PM1/6/10
to Google Web Toolkit
OK. I got it fixed. Had to clean some stuff in the app's XML and class
path. Was a bit messy, but now it's working. Thank you all

On Jan 6, 7:25 am, Rogério Valente <rogerio.vale...@gmail.com> wrote:

> Check if the message below is on console output.
>
> [WARN] The class com.google.gwt.dev.HostedMode is deprecated and will
> be removed --
> use com.google.gwt.dev.DevMode instead.
>
> If the message is present on your console, change your main class from
> com.google.gwt.dev.HostedMode to com.google.gwt.dev.DevMode.
> And if the problem persist, check the Compile & Debug tips in this

> url :http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideCompi...

Igor Ganapolsky

unread,
Jan 5, 2010, 9:43:46 PM1/5/10
to Google Web Toolkit
Did you try relaunching your application and Firefox after you
installed the plugin?

Igor Ganapolsky

unread,
Jan 5, 2010, 5:25:57 PM1/5/10
to Google Web Toolkit
Actually, I just relaunched the debugger and switched to debug mode,
and am now able to hit the breakpoints.

Igor Ganapolsky

unread,
Jan 5, 2010, 5:15:16 PM1/5/10
to Google Web Toolkit
It doesn't seem to hit breakpoints for me either. Is it supposed to
debug with an external Firefox browser?


On Jan 5, 1:45 pm, y <y...@cs.washington.edu> wrote:

Sorinel C

unread,
Jan 7, 2010, 4:40:16 AM1/7/10
to Google Web Toolkit
Why don't you check here?

http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

where you have the most important steps of upgrading a GWT application
to version 2.0. (THE MOST IMPORTANT IS CLEARING THE BROWSER CACHE &
USE THE URL PARAMETER gwt.codesvr)

I think it will help you...


Cheers!

Reply all
Reply to author
Forward
0 new messages