Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-06-2006, 03:31 PM
Intermediate Member
 
Posts: 21
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
Reply With Quote
  #2 (permalink)  
Old 03-06-2006, 03:35 PM
Zimbra Employee
 
Posts: 2,103
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...
Reply With Quote
  #3 (permalink)  
Old 03-06-2006, 03:35 PM
Zimbra Employee
 
Posts: 4,792
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.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #4 (permalink)  
Old 03-06-2006, 03:37 PM
Zimbra Employee
 
Posts: 2,103
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)
Reply With Quote
  #5 (permalink)  
Old 03-06-2006, 03:49 PM
Intermediate Member
 
Posts: 21
Default

Thanks!

Cheers,
Marty
Reply With Quote
  #6 (permalink)  
Old 03-07-2006, 01:35 PM
Zimbra Employee
 
Posts: 269
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.
Reply With Quote
  #7 (permalink)  
Old 06-26-2006, 10:59 AM
Intermediate Member
 
Posts: 20
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.
Reply With Quote
  #8 (permalink)  
Old 06-27-2006, 12:17 PM
Zimbra Employee
 
Posts: 4,792
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
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.