SDM and client debugging with eclipse debugger?

468 views
Skip to first unread message

kwma...@gmail.com

unread,
Apr 22, 2015, 9:12:05 AM4/22/15
to google-we...@googlegroups.com
Hi all,

I am new to Super Dev Mode in GWT and currently try to use SDM in combination with Client Side Debugging, but it is not working (no break point activation on client side code). My setup is the following:

* IDE: Eclipse Luna Service Release 1 (4.4.1) with GWT Plugins 3.8.0
* GWT project based on 2.7.0
* Deployment to local JBOSS (Wildfly) via JBOSS Maven Plugin (mvn wildfly:deploy)
* Browser: Chrome 42

The procedure is:
* start the code server via maven --> mvn gwt:debug
* Start a debug configuration in eclipse that connects to the (code server?) debug port 8000 -> Debug connection successfully established
* Compile and deploy project with maven -> mvn clean compile package wildfly:deploy
* Start the GWT-App in Chrome (URL pointing to GWT App running on local JBOSS)
* Turn "Dev Mode On" with previously created bookmarks -> Recompile Option appears -> Click it --> Recompilation
* Trigger Client-side functionality (e.g. click a button) that should trigger a break point activation (e.g. in buttonClicked Handler) ==> NO Break Point Halt in Eclispe Debugger :-(

Any hints what could be wrong with my setup?

Thanks
Kristian

Jens

unread,
Apr 22, 2015, 9:23:32 AM4/22/15
to google-we...@googlegroups.com
With SDM your client side code only runs in the browser and you have to set break points in the browser's dev tools. Launching the JVM in debug mode does not give you anything for client side debugging.

There is an Eclipse plugin called SDGB on Github that allows Eclipse to connect to Chrome browser and then you can set break points in Eclipse (and Eclipse synchronizes them with Chrome browser).


-- J.

Ivan Markov

unread,
Apr 22, 2015, 9:40:41 AM4/22/15
to google-we...@googlegroups.com
Here's the web-page of the plugin: http://sdbg.github.io/
Drop me a note if you can't get it running.

kwma...@gmail.com

unread,
Apr 23, 2015, 3:10:01 AM4/23/15
to google-we...@googlegroups.com
OK, thanks for the info! This clarifies the behaviour I described in my initial post.

kwma...@gmail.com

unread,
Apr 23, 2015, 3:17:46 AM4/23/15
to google-we...@googlegroups.com
Hello Ivan,

thanks for pointing me to this plugin. I've been stumbled upon it via youtube, didn't give it a try yet since I am pretty sure that I will have installation problems due to company security restrictions. However, I just so that sdbg also provides a zip version of the plugin.... :-) 

Regards
Kristian

kwma...@gmail.com

unread,
Apr 23, 2015, 6:02:15 AM4/23/15
to google-we...@googlegroups.com
Independently from the reply from Jens and Ivan I'm curious to know why I do not see a sourcemaps entry in chrome developer section (as one can see in this video https://www.youtube.com/watch?v=p00K0BiiSGI&noredirect=1 starting at 2 min 11 sec).  

Regards
Kristian

kwma...@gmail.com

unread,
Apr 23, 2015, 6:13:04 AM4/23/15
to google-we...@googlegroups.com
Hi Ivan, 

in the meantime I was able to install the sdbg plugin and tried to use it according to video from the github readme page of the project. 

Difference was that I did start Codeserver via  Debug -> [GWT] Web Application (Super Dev Mode) and did not get a classnotfoundexception for the CodeServer. Also - since I have to use the target app server as runtime environment (e.g. JNDI-Lookup), I did provide the URL of the local JBOSS when creating a "Launch Chrome" Debug Configuration instead of the URL from the Development Mode View in Eclipse. 

Unfortunately I do get the same behaviour that the debugger does not halt at the break points in the client code. Should it work as expected also with local jboss as runtime instead of GWT-Plugin-internal JETTY Runtime?

Thanks
Kristian

kwma...@gmail.com

unread,
Apr 23, 2015, 8:33:49 AM4/23/15
to google-we...@googlegroups.com
Good news! I got it working now with the sdbg plugin - after restarting everything (eclipse, jboss, debug configs, sdm on) , the debugger pauses in the client code at the break points set :-)
Regards
Kristian

Ivan Markov

unread,
Apr 23, 2015, 5:55:44 PM4/23/15
to google-we...@googlegroups.com
Hi,

SDBG no longer provides a ZIP version of the plugin (as noted on the Releases page).
I hope you managed to install from the P2 site. If you used some of the old ZIP releases, you shouldn't as they are really old in the meantime.

Perhaps you can use the approach outlined here: https://groups.google.com/forum/#!topic/sdbg/qvkr4WJvpm0
Reply all
Reply to author
Forward
0 new messages