It seems like Firefox and the web servers ought to deal with this
issue. Have you looked into use gzip or compression?

Firebug gets its data from Firefox. So if you put concatenated files
in, then all the things you take out (error messages, line numbers
etc) are in terms of the concatenation.  That means a huge number of
changes to support unpacking.

Perhaps you can get 80% of the value from 20% of the work. You could
add a context menu item to the source view (js and css) that converts
the file and line number under the mouse cursor to your source file
and line number.

Here's one way to proceed.

Build a helloworld Firebug extension using Honza's tutorial from
softwareishard:
http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-hello-world-part-i/

Change the helloworld to monkey-patch
Firebug.ScriptPanel.getContextMenuItems(). (That is replace its
current implementation with your own, via
Firebug.ScriptPanel.getContextMenuItems = function() {...}).

In the code for your hacked panel:
 this.selectedSourceBox is the thing you see in the script panel.
 this.selectedSourceBox.repObject is the sourceFile object (Firebug's
meta data for your big concatenation).
 sourceFile.href is the URL for the big file.
 the existing getContextMenuItems gives the line number of the mouse
click.
 add an entry to the menu that calls a new function with
(this.context, url, lineNo)
 in your new function:
   this.context.sourceCache.getLine(url, lineNo) gives the source line
under the mouse.
   walk backwards until you get to your magic strings, do the math,
   Put the result in the clipboard, popup node, or whatever.

Don't hesitate to ask for more info.
We plan to add easier ways to extend Firebug in 1.5.

HTH,
jjb



On May 31, 2:46 am, "[email protected]"
<[email protected]> wrote:
> Hi John,
>
> The last hours I had quite a close look to the Firebug sources. This
> piece of software is - well - complex ;)
>
> My attempts to find the point where to start found an end in css.js at
>
> domUtils = CCSV("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils");
>
> A look at the Firebug internals page made clear, that for me things
> becoming strange at this point.
>
> https://developer.mozilla.org/En/Firebug_internals#Firebug_Service
>
> Especially the next paragraph is quite scaring
>
> https://developer.mozilla.org/En/Firebug_internals#Extending_nsIFireb...
>
> Ok. I would like to implement this feature, but right now I don't see
> a chance to do so without going deep into the firefox-hole (hope I
> translated that right ;)). Do you see a chance to implement such an
> extension without doing the things linked above?
>
> Nico
>
> On 18 Mai, 22:43, johnjbarton <[email protected]> wrote:
>
> > Since I don't anticipate being able to work on this kind of function,
> > please let us know if you want to create a Firebug extension to
> > implement this feature.
> > jjb
>
> > On May 18, 12:46 pm, nicosteiner <[email protected]> wrote:
>
> > > Hi,
>
> > > Sorry, I just saw that I posted the link to the concatted CSS. Here is
> > > the one for JavaScript:
>
> > >http://dsl.1und1.de/xml/jasmin/dslorder-de+pfo/js/AC:O:def
>
> > > Nico
>
> > > On May 18, 4:13 pm, nicosteiner <[email protected]> wrote:
>
> > > > Hi,
>
> > > > It's recommended to reduce HTTP-Requests of a website to a minimum.
> > > > That's why we concat several JavaScript sourcefiles and deliver them
> > > > in one request.
>
> > > > An example of such a request you can find here:
>
> > > >http://dsl.1und1.de/xml/jasmin/dslorder-de/css/AC:O:def
>
> > > > The problem is, that JS-Errors in Firebug are hard to debug. At the
> > > > moment, there is something like "Error in line 2056 in 
> > > > filehttp://dsl.1und1.de/xml/jasmin/dslorder-de/css/AC:O:def";. A
> > > > standardized comment for identifying and seperating the concatted
> > > > sourcefiles for error messages in Firebug would be a great help. If
> > > > you are searching for "//###" you can see that we already placed such
> > > > comments for each source file.
>
> > > > A comment like this instead would generate an Firebug output "Error in
> > > > line 25 in file /common/script/pfo.js" which is much better to handle.
>
> > > > I think this would also be useful for concatted CSS files and Inspect
> > > > Mode outputs.
>
> > > > Regards
> > > > Nico
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to