Results 1 to 8 of 8

Thread: Debugging Zimlets

  1. #1
    Join Date
    Mar 2006
    Posts
    21
    Rep Power
    9

    Default Debugging Zimlets

    Is there a log that tracks the deployment or undeployment of zimlets? My test zimlet seems to hang Zimbra. After login it just sticks in the loading page. The Zimbra.log doesn't seem to have anything in it and I don't recall seeing any mention of a log in the zimlet guide.

    Cheers,
    Marty

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    Welcome to our private purgatory... this is usually a javascript error.

    Best way to debug this:

    Plug your .js code into jslint.com, and fix all the bugs it finds.

    Redeploy the zimlet, and load the app in mozilla with the debugger running. Find (in the js console) whatever it doesn't like, and track it down in the debugger...

  3. #3
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Most likely a JavaScript error. Run your Zimlet code through a syntax checker like http://jslint.com

    If you launch the app with ?debug=3 you may get some more data. Of course it's best to use Firefox and the Javascript console. It may show you the problem.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  4. #4
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    One more thing - if you reload in the debugger, load the url with
    ?mode=mjsf&gzip=false
    appended to the url, for debugging sanity (takes longer to load, but it's worth it)

  5. #5
    Join Date
    Mar 2006
    Posts
    21
    Rep Power
    9

    Default

    Thanks!

    Cheers,
    Marty

  6. #6
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    10

    Default

    You can also load the Venkman (mozilla debugger) and set the following option:

    Debug > Error Trigger > Stop for Errors

    Then, when loading the client any JS errors will trigger the debugger to stop/break on the exact line causing the error.

  7. #7
    Join Date
    Apr 2006
    Posts
    20
    Rep Power
    9

    Default any documentation on the debugging codes?

    Quote Originally Posted by marcmac
    One more thing - if you reload in the debugger, load the url with
    ?mode=mjsf&gzip=false
    appended to the url, for debugging sanity (takes longer to load, but it's worth it)
    Is there any handy documentation anywhere on the various modifiers to the zimbra query string and what they can do? Would be very helpful to have a wiki page somewhere with details.

  8. #8
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by simonellistonball
    Is there any handy documentation anywhere on the various modifiers to the zimbra query string and what they can do? Would be very helpful to have a wiki page somewhere with details.
    I've started one here... We can update/add to it as we go along.

    http://wiki.zimbra.com/index.php?tit...ent_URL_Tricks
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. Zimlets Webinar: July 24th
    By GregA in forum Webinars
    Replies: 12
    Last Post: 09-12-2007, 10:24 PM
  2. where are my zimlets ?
    By santo in forum Zimlets
    Replies: 21
    Last Post: 06-05-2007, 08:30 AM
  3. Need guidance for developing zimlets
    By jiggy in forum Developers
    Replies: 12
    Last Post: 02-23-2007, 04:32 AM
  4. Graphs and Zimlets not displaying?
    By nadia007 in forum Installation
    Replies: 13
    Last Post: 11-24-2006, 07:51 AM
  5. No zimlets displayed in 3.2 M1/M2
    By pepijn in forum Administrators
    Replies: 2
    Last Post: 07-28-2006, 07:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •