Tuesday, March 29, 2016

Re: SuperDevMode

Whoops, I did have one more specific question.  I followed Brandon's video to debug with Chrome, and it worked great:


Is there a video, or notes, describing how to debug GWT SuperDevMode in Firefox?

On Tuesday, March 29, 2016 at 11:35:01 AM UTC-7, Jim Douglas wrote:
Thanks again for the pointers, Thomas.  There's probably a cleaner approach, but I was able to get SuperDevMode to load by editing the SuperDevMode web app classpath to force gwt-dev.jar to the front of the list, to hide the jetty-all-9.2.10.jar from my default classpath.

Debugging is the final piece of the puzzle; it looks like http://sdbg.github.io/ is required for source-level debugging of GWT client code in Eclipse.  I just installed that and ran some quick tests, and it looks like it's all working.  Is that everything you need to debug with SuperDevMode in Eclipse?

On Tuesday, March 22, 2016 at 3:02:03 AM UTC-7, Thomas Broyer wrote:


On Monday, March 21, 2016 at 11:21:21 PM UTC+1, Jim Douglas wrote:
Hmm, that sounded like there might be a hint in there somewhere. :-)

> You could also create a launch configuration for the SuperDevMode code server directly because DevMode -noserver is the same as starting the main class CodeServer

What does that mean in Eclipse, Jens?  This is what I have for the DevMode "Program Arguments":

-noserver -superDevMode -startupUrl http://localhost:8888/apps/default -war "${workspace_loc:/BBj/war}" -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 9997 -bindAddress 0.0.0.0 com.basis.bbj.web.gwt.EnglishOnly

Main class: com.google.gwt.dev.codeserver.CodeServer
Program arguments (taken right from your first post, just replaced launcherDir's value with variable):
-noprecompile -port 9876 -sourceLevel 1.8 -bindAddress 0.0.0.0 -launcherDir "${workspace_loc:/BBj/war}" -logLevel INFO -style OBFUSCATED com.basis.bbj.web.gwt.EnglishOnly

You'd lose the "open in browser" shortcut (from DevMode's -startupUrl) but should otherwise work just as well.

(note: applies to both 2.7 and 2.8)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment