<div dir="ltr">So, now Chrome (35+) and FireFox don't support GWT "classic" DevMode, I've managed to run drools-wb in SuperDevMode. <div><br></div><div><div>The "classic" DevMode will not be supported in GWT 2.6: <a href="http://www.gwtproject.org/release-notes.html#Release_Notes_2_6_1">http://www.gwtproject.org/release-notes.html#Release_Notes_2_6_1</a><br>
</div><div><br></div><div>Here's my findings on how to configure your webapp, IDE and run (or debug) the damn thing.<br></div><div><br></div><div>These instructions are for IDEA (NetBeans will probably follow a similar route).</div>
<div><br></div><div>(1) Create a regular GWT Launcher:</div><div><br></div><div><img src="cid:ii_hvj8mxu60_146283cb81f27303" width="544.0000000000001" height="357.65745856353595"><br><br></div><div>(2) Create a new GWT Launcher for SuperDevmode:</div>
<div><br></div><div><img src="cid:ii_hvj8nzon1_146283d78b9164b9" width="562" height="369.49171270718233"><br><br></div><div>(3) Add the following to your webapp's gwt.xml (module) file:</div><div><br></div><div><div>
<font face="courier new, monospace"> <!-- SuperDevMode --></font></div><div><font face="courier new, monospace"> <add-linker name="xsiframe"/></font></div><div><font face="courier new, monospace"> <set-configuration-property name="devModeRedirectEnabled" value="true"/></font></div>
<div><font face="courier new, monospace"> <set-property name="compiler.useSourceMaps" value="true"/></font></div><div><font face="courier new, monospace"> <set-configuration-property name='xsiframe.failIfScriptTag' value='false'/></font></div>
</div><div><font face="courier new, monospace"><br></font></div><div>(4) Launch your regular webapp (the "classic" GWT Launcher):<font face="courier new, monospace"><br></font></div><div><br></div><div>... <tick>, <tock>, <tick>, <tock> while it compiles and launches...</div>
<div><br></div><div><img src="cid:ii_hvj8rndk2_1462840125908416" width="562" height="309.1"><br><br></div><div>(5) Launch the SuperDevMode code server (the "SuperDevMode" GWT Launcher):</div><div><br></div><div>
<div>... <tick>, <tock>, <tick>, <tock> while it compiles and launches...</div></div><div><br></div><div><img src="cid:ii_hvj8w65u3_14628434a351a6a5" width="562" height="309.1"><br>(6) Drag the "Dev Mode On" and "Dev Mode Off" buttons to your bookmark bar (as advised) - but we don't normally read these sort of things, right! ;)<br>
</div></div><div><br></div><div>(7) Go back to the webapp's browser tab</div><div><br></div><div>(8) Click on the "Dev Mode On" bookmark you created in step (6)</div><div><br></div><div><img src="cid:ii_hvj8z84l4_14628457949b17c1" width="562" height="309.1"><br>
<br></div><div>(9) Click on "compile"</div><div><br></div><div><img src="cid:ii_hvj90qws5_14628468ceb8be5c" width="562" height="309.1"><br><br></div><div>(10) Delete the "codesvr" part of the URL and press enter (dismiss the popups that appear; which ones depends on what browser your GWT module targets; e.g. I had to dismiss a popup about using Chrome but the GWT model targets FireFox).</div>
<div><br></div><div><img src="cid:ii_hvj91r226_1462847456281eb9" width="562" height="309.1"><br>(11) Done!<br></div><div><br></div><div><img src="cid:ii_hvj949yb7_1462849116eb2df7" width="562" height="309.1"><br><br></div>
<div>(12) What's that? You want to debug your application?!?</div><div><br></div><div>This isn't too bad. Just launch both your "classic" GWT Launcher in debug mode and the "SuperDevMode" GWT Launcher in normal mode.</div>
<div><br></div><div>Server-side code needs break-points in IDEA, and client-side break-points need to be added using Chrome's Developer Tools (you'll need to make sure "sourceMaps" are enabled, but this appears to be the default in Chrome 35).</div>
<div><br></div><div>Accessing Chrome's debugger:</div><div><br></div><div><img src="cid:ii_hvj9cp3v9_146284f0fd3ee6ef" width="562" height="316.125"><br><br></div><div>Debugging:</div><div><br></div><div><img src="cid:ii_hvj9aghx8_146284d76b423222" width="562" height="316.125"><br>
<br></div><div>Simple!</div><div><br></div><div>It takes a bit of getting used to debugging client-side stuff in Chrome, and server-side stuff in IDEA, but it's not terrible (although don't expect to be able to introspect everything in Chrome like you used to in IDEA).</div>
<div><br></div><div>I hope this helps (probably more so as others find "DevMode" stops working for them.... and when we move to GWT 2.6.1 --- for IE10 support --- so it is coming sooner than later).</div><div><br>
</div><div>Cheers,</div><div><br></div><div>Mike</div><div><br></div><div><br></div></div>