Firefox supports de-compile: the internal compiler data structures are
traversed and statements are recreated. In the process each statement
is placed on a new line, braces are lined up, and code indented. The
result is called "prettyPrint".

Ignoring issues of performance, the primary issue in using this
feature is going thru all of the code in script.js, debugger.js, and
firebug-service.js to deal with the modal switch between original and
decompiled source.

This change would be much more practical after we complete our work on
the separation of JS debug in to front and back end parts. In the next
few weeks debugger.js and firebug-service.js are undergoing organ
transplant surgery. Everything you see today will be somewhere else
once we get out of the ICU.

jjb

On Jan 28, 11:41 am, Nicolas Hatier <[email protected]> wrote:
> I don't thing the OP is asking to deobfuscate variable names (neither am I).
>
> What I want to do display them a readable way, adding newlines at
> correct positions and unpacking what can be unpacked. I have a few ideas
> how to do that, but I'm not sure yet how I could try to integrate this
> efficiently in Firebug.
>
> NH
>
> On 2011-01-28 12:50, ed wrote:
>
> > You're asking for the impossible, because information is being thrown
> > away.  When my js
>
> > var myVarHasMeaning;
>
> > is replaced by the minimifier
>
> > var a;
>
> > there's nothing you can do to reconstitute the original variable name.
> > It's been discarded.

-- 
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