You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2018/11/15 08:46:29 UTC

Debugging workflow improved: Debug libraries

Hi,

just let you know that Josh updated compiler so now libraries can generate
source maps.
Of course you need to add source map config to the library.
I was trying today in my library projects (in real world project) and
working fine, so that makes in my opinion a great step forward in
developing Apache Royale Apps since most of the code use to be in libraries.



-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Debugging workflow improved: Debug libraries

Posted by Carlos Rovira <ca...@apache.org>.
A few things to keep in mind:

* You must set source-map compiler option to true in both the library and
application projects.
* You may need to clean the output folder of your application project
before the source maps from the SWC will be copied there. (In my case I
didn't need that maybe thanks to how maven builds, but can't ensure)
* Debugging will work only on the computer where the SWC was built.

El jue., 15 nov. 2018 a las 10:10, Carlos Rovira (<ca...@apache.org>)
escribió:

> Hi Piotr,
>
> I think nothing is involved in extension, just pure compiler.
> One more thing to take into account is that debug only works in the
> machine where is developed, since I think it uses absolute paths
> Maybe something that could be improved over time :)
>
>
>
> El jue., 15 nov. 2018 a las 10:05, Piotr Zarzycki (<
> piotrzarzycki21@gmail.com>) escribió:
>
>> Hi Carlos,
>>
>> Good news. He upgrade his extension using Nightly Build of compiler ?
>>
>> Piotr
>>
>> czw., 15 lis 2018 o 09:46 Carlos Rovira <ca...@apache.org>
>> napisał(a):
>>
>> > Hi,
>> >
>> > just let you know that Josh updated compiler so now libraries can
>> generate
>> > source maps.
>> > Of course you need to add source map config to the library.
>> > I was trying today in my library projects (in real world project) and
>> > working fine, so that makes in my opinion a great step forward in
>> > developing Apache Royale Apps since most of the code use to be in
>> > libraries.
>> >
>> >
>> >
>> > --
>> > Carlos Rovira
>> > http://about.me/carlosrovira
>> >
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Debugging workflow improved: Debug libraries

Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,

I think nothing is involved in extension, just pure compiler.
One more thing to take into account is that debug only works in the machine
where is developed, since I think it uses absolute paths
Maybe something that could be improved over time :)



El jue., 15 nov. 2018 a las 10:05, Piotr Zarzycki (<
piotrzarzycki21@gmail.com>) escribió:

> Hi Carlos,
>
> Good news. He upgrade his extension using Nightly Build of compiler ?
>
> Piotr
>
> czw., 15 lis 2018 o 09:46 Carlos Rovira <ca...@apache.org>
> napisał(a):
>
> > Hi,
> >
> > just let you know that Josh updated compiler so now libraries can
> generate
> > source maps.
> > Of course you need to add source map config to the library.
> > I was trying today in my library projects (in real world project) and
> > working fine, so that makes in my opinion a great step forward in
> > developing Apache Royale Apps since most of the code use to be in
> > libraries.
> >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Debugging workflow improved: Debug libraries

Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Carlos,

Good news. He upgrade his extension using Nightly Build of compiler ?

Piotr

czw., 15 lis 2018 o 09:46 Carlos Rovira <ca...@apache.org>
napisał(a):

> Hi,
>
> just let you know that Josh updated compiler so now libraries can generate
> source maps.
> Of course you need to add source map config to the library.
> I was trying today in my library projects (in real world project) and
> working fine, so that makes in my opinion a great step forward in
> developing Apache Royale Apps since most of the code use to be in
> libraries.
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*