John, if you were to try to implement this, where would you start?
I probably don't have the correct nomenclature here, but does/could
Firebug have the ability to intercept javascript code before it is
"injected" in the js engine and replace it by another version of the
same code? This way a de-minifier could be added to unpack detected
minified code and the debugger would run that new version. I'm thinking
about a de-minifier that could perhaps detect the most common minifiers
available, and for the obviously minified code it can't detect, it could
at least insert newlines after semicolon and braces.
Nicolas
On 2011-01-27 12:03, John J Barton wrote:
If anyone is keen to try to implement this, I'll just add that it is
technically feasible, at least if you consider decompiled code as
"beautified".
jjb
On Jan 26, 9:26 pm, Garrett Smith<[email protected]> wrote:
Hey I wanna debug some crap.
It is crap that I didn't write. It's online and minified.
I wanna see the source code beautified and I wanna add a breakpoints
to statements. Firebug should offer this because it would make it
possible to debug minifed obfuscated code. It will help anyone who
wants or needs to know what is going on in a site that is minified
(like Twitter or GMail). I think it might be helpful for implementors
and also for Internet discussion questions such as "what is this code
doing: [url]?"
That would kick ass and FB would own other debuggers WRT
obfuscated/minified code.
Garrett
--
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.