The road less taken

« Adding a tag cloud... | Main | Ask Guruji: The... »
Thursday May 31, 2007

Debugging publish/subscribe

If you're using jMaki to create your webapp, have a widget and added glue code, that just doesn't seem to work. There are two things you can do- scratch your head and whine or try your hand at debugging.

If you choose the later option, there are either of two things you can do to debug your publish/subscribe.

  1. Edit resources->jmaki.js, change
    this.debugGlue=false;this.debug=false
    change to
    this.debugGlue=true;this.debug=true
    
    You can see all events publish subscribe. I especially like this one since it spells out all events in red and green clearly, making them easy to spot.
  2. Another way would be to drag and drop the yahoo.logger widget on your page. This is fancier but achieves similar result.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed