My favorites | Sign in
Logo
                
Search
for
Updated Mar 24, 2009 by jasvir
DebuggingShindig  
How to debug cajoled gadgets in Shindig
  1. Check Shindig out.
  2. Build it:
  3. mvn clean
    mvn
  4. Run it:
  5. mvn -Prun
  6. Once it runs you should see which port it puts itself on (usually 8080).
  7. Browse to http://localhost:8080/gadgets/files/samplecontainer/samplecontainer.html and make sure gadgets work at all.
  8. If that all works ok, then check Caja out.
  9. (Optional) In caja/build.xml replace every instance of "minify" with "pretty" - this will mean you can see original code in Shindig instead of minified code (see issue 1004 for whether this is still needed).
  10. Each time you modify Caja, build:
  11. ant jars
  12. Copy Caja into Shindig's Maven repository
  13. cp ant-jars/pluginc.jar ~/.m2/repository/caja/caja/r3164/caja-r3164.jar 
  14. Rebuild and rerun Shindig:
  15. mvn && mvn -Prun
or, optionally, without tests (much faster, but still slow)
mvn -Dmaven.test.skip=true && mvn -Prun
or, in offline mode (reasonably fast)
mvn -o -Dmaven.test.skip=true && mvn -o -Prun
Just this step is sufficient if all you have changed is Shindig.
  1. Shift-reload the gadget container in your browser - a simple reload doesn't always seem to get your updates.
  2. It also helps to uncheck "Cache".
  3. On the browser, it can be helpful to open the gadget frame in a new tab, add &debug=1 to the URL (before the #) and shift-reload.
  4. With luck, you will now be fully equipped for debugging at all levels.

Mercurialising Shindig

Sometimes it might be desirable for several people to work on a checked out version of Shindig to create a patch, rather than just one. Here's how...

In the checkin comment, note the Subversion version it was created from. This may come in handy later!
then push their own
hg ci
hg push <path to repo>
Note that there will be no email notifications, so other participants need to be told to do a pull/update.
then apply a new patch and resolve any merge issues
  patch -p0 < yourpatch.patch
  hg merge
Once all merge issues are resolved, test your checkout and if everything looks good, commit and push your changes.

Sign in to add a comment