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 01-23-2008, 10:21 AM
Senior Member
 
Posts: 51
Default Debug/Firebug : breakpoint in Zimlet init function

Hello,

Since I'm using 5.0 version (I used 4.5.8 in the past), I can't put a breakpoint in my Zimlet init function with Firebug anymore.
Zimbra add a parameter "&v=12011..." to JavaScript file URL, so Firebug see it as a new file after each Zimbra reload => My Firebug breakpoint doesn't exist anymore.

Is it possible to remove this "&v=..." parameter ? Or is there another way to put a breakpoint in Zimlet init function ?

Thanks.
Marine
Reply With Quote
  #2 (permalink)  
Old 01-23-2008, 11:57 AM
Zimlet Guru & Moderator
 
Posts: 467
Default

Are you running in &dev=1?
Reply With Quote
  #3 (permalink)  
Old 01-23-2008, 12:29 PM
Senior Member
 
Posts: 51
Default

No, I didn't.
But following your idea, I just tried with this parameter, and that doesn't seem to do anything.
Code:
http://192.168.1.108/zimbra/?app=calendar&gzip=false&debug=3&skin=steel&mode=mjsf&dev=1#1
(Zimbra automatically add "#1" at the end of the URL)

Another idea, please ?
Reply With Quote
  #4 (permalink)  
Old 01-23-2008, 02:55 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by marinew View Post
No, I didn't.
But following your idea, I just tried with this parameter, and that doesn't seem to do anything.
Code:
http://192.168.1.108/zimbra/?app=calendar&gzip=false&debug=3&skin=steel&mode=mjsf&dev=1#1
(Zimbra automatically add "#1" at the end of the URL)

Another idea, please ?
Ahh. Never mind you are running 4.5.6. Try upgrading your version of Firebug.
Fireclipse Overview

I don't have a problem with the breakpoints resetting with that version.
Reply With Quote
  #5 (permalink)  
Old 01-24-2008, 12:47 AM
Senior Member
 
Posts: 51
Default

I installed Fireclipse (corresponding in fact to Firebug 1.1.0b10), but that's not better.
Not sure to have been clear because of my bad english : I'm currently working with Zimbra 5.0.

JoshuaPrismon, could you please tell me what name of file you see, in Firebug "Script" tab for your zimlet ?
I see : "myZimlet.js?debug=1?v=12011..."
And "v" value change after each Zimbra reload. Is it the same for you, does "v" value change each time ?

I tried again on a 4.5.6 Zimbra version running on another machine => No problem, Firebug stop on my breakpoint. The script URL is also with a "v" parameter, but without "debug=1" parameter.
And most important thing : value of "v" parameter seems to be the same frome one time to another if I reload Zimbra...

=> I really think that this "v" parameter could be the cause of my problem in Zimbra 5.0...

Again, is there a way to remove this "v" parameter, or to avoid it to change ?

Thanks
Reply With Quote
  #6 (permalink)  
Old 01-24-2008, 12:54 AM
Senior Member
 
Posts: 51
Default

I just noticed a strange thing in 5.0 : all JavaScript files coming with Zimbra have a "v" parameter that don't change frome one time to another. And they all have the same value. Only my Zimlet JavaScript file has a different value, that change each time...
Reply With Quote
  #7 (permalink)  
Old 08-10-2008, 09:27 AM
Junior Member
 
Posts: 6
Lightbulb Just for the record...

I was having the same issues with a new zimlet. After pulling out hair (that i cannot afford), I found this thread. I took Joshua's advice and upgraded firefox and firebug (v3 firefox, v1.2 firebug), and all worked as expected.

The v# that marinew wrote about was not an issue.

Hope this helps...
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.