flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: [FalconJX] Debugging minified code
Date Wed, 12 Jul 2017 06:35:53 GMT
Sometimes it’s not too hard to figure out what’s going on, but sometimes it’s a real
pain. The situation where I had a comparison against a constant in a bindable class was a
real doozy. It was in the middle of a lot of XML parsing and I originally thought there was
a problem with the XML classes until a stepped through a lot of renamed functions that were
very hard to figure out what they did.

So what exactly would the compiler option look like?

I currently have something like this:
-remove-circulars -js-output-optimization=skipAsCoercions -html-template=src/resources/mdl-js-index-template.html
-js-external-library-path+=typedefs -js-library-path+=lib

Do I include the dashes or not?

Is this correct?
-remove-circulars -js-output-optimization=skipAsCoercions -html-template=src/resources/mdl-js-index-template.html
-js-external-library-path+=typedefs -js-library-path+=lib -js-compiler-option=debug

How would I include multiple options there? Something like this does not look right:

> On Jul 12, 2017, at 8:33 AM, Alex Harui <aharui@adobe.com.INVALID> wrote:
> Try using -js-compiler-option.  It should pass along the various options
> in the article to GCC.
> I haven't had to debug anything really big, but I often delete the source
> map, add line breaks to the area of code that is failing and step through
> it.  Painful for sure, but often successful.
> HTH,
> -Alex
> On 7/11/17, 3:42 PM, "Harbs" <harbs.lists@gmail.com> wrote:
>> One of the difficult tasks is trying to figure out what’s going wrong in
>> minified code. I found an article on tips for that.[1] There are a few
>> Closure options to make the minified code more legible. Is there a way to
>> have Falcon use those options when sending the code to Closure?
>> Thanks,
>> Harbs
>> [1]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub
>> .com%2Fgoogle%2Fclosure-compiler%2Fwiki%2FDebugging-Compiled-Code&data=02%
>> 7C01%7C%7Cbfca0e9dc888469da8e708d4c8b05d83%7Cfa7b1b5a7b34438794aed2c178dec
>> ee1%7C0%7C0%7C636354107193335204&sdata=VYIC%2FYV7hx9DlzfD7II5mqvvmavD6Us1L
>> ZAFkbQN%2BPs%3D&reserved=0
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c
>> om%2Fgoogle%2Fclosure-compiler%2Fwiki%2FDebugging-Compiled-Code&data=02%7C
>> 01%7C%7Cbfca0e9dc888469da8e708d4c8b05d83%7Cfa7b1b5a7b34438794aed2c178decee
>> 1%7C0%7C0%7C636354107193335204&sdata=VYIC%2FYV7hx9DlzfD7II5mqvvmavD6Us1LZA
>> FkbQN%2BPs%3D&reserved=0>

View raw message