Alex,

That sounds like a good plan, but I doubt if it will gives us stop on
breakpoints in MXML/AS3 code. I just tested debugger statement according to
Josh's link and I got stop but straight in the JS code.

If having debugger statement make that thing working, why not merging and
having that stuff here ? But the real question is if having it really helps.

Along of all updates to VSCode and maybe Royale we just lost quite a big
advantage - debugger in IDE. I'm debugging stuff in general in the Browser,
but having it in IDE that would be awesome.

Thanks,
Piotr

śr., 6 cze 2018 o 20:09 Alex Harui <aha...@adobe.com.invalid> napisał(a):

> Short of making it work in both SWF and JS, couldn't we just make it work
> in JS by adding a "debugger" global variable to the JS typedefs?  Then it
> could be wrapped in COMPILE::JS blocks and used in Royale without changing
> the compiler.
>
> Just wondering,
> -Alex
>
> On 6/6/18, 11:02 AM, "Josh Tynjala" <joshtynj...@apache.org> wrote:
>
>     No, you can't use the debugger statement in ActionScript. I as
> documented, you can use a custom HTML template with your Royale app and add
> it in a <script> element before the Royale code starts up.
>
>     It's worth mentioning that I created a branch to add support for the
> debugger statement in ActionScript:
>
>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-compiler%2Fcommits%2Ffeature%2Fdebugger-statement&data=02%7C01%7Caharui%40adobe.com%7Ca4c16903fac8469646d508d5cbd7ad0e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636639049541335043&sdata=5o0BcP4AJs9WJMxTDPkKYLaRok1LRfYxtyLr9RA6pFg%3D&reserved=0
>
>     However, there was opposition to merging it in because the SWF
> implementation would require calling an undocumented API to get Flash
> Player or AIR to pause in the debugger.
>
>     - Josh
>
>     On 2018/06/06 17:32:52, OmPrakash Muppirala <bigosma...@gmail.com>
> wrote:
>     > Curious if simply calling debugger; will help here?
>     >
>     > Will that statement crosscompile in Royale?
>     >
>     > Thanks,
>     > Om
>     >
>     >
>     > On Wed, Jun 6, 2018, 10:18 AM Josh Tynjala <joshtynj...@apache.org>
> wrote:
>     >
>     > > You might be running into this issue (Debugger will not stop at
>     > > breakpoints on startup with Apache Royale):
>     > >
>     > >
>     > >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBowlerHatLLC%2Fvscode-nextgenas%2Fwiki%2FCommon-issues%23debugger-will-not-stop-at-breakpoints-on-startup-with-apache-royale&data=02%7C01%7Caharui%40adobe.com%7Ca4c16903fac8469646d508d5cbd7ad0e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636639049541335043&sdata=ek90ekPWqhd5EfIOHljWrq3Dw%2Fd8lNGo7VTBG7NSlus%3D&reserved=0
>     > >
>     > > It seems like VSCode can't connect with the browser's debugger
> protocol
>     > > fast enough to register the breakpoint before the startup code has
> already
>     > > finished running.
>     > >
>     > > A good way to check if you're running into this issue is to add
> some kind
>     > > of click listener with a breakpoint. By the time you can interact
> with the
>     > > app, the debugger should be fully connected.
>     > >
>     > > - Josh
>     > >
>     > > On 2018/06/05 19:50:40, Piotr Zarzycki <piotrzarzyck...@gmail.com>
> wrote:
>     > > > Hi Guys,
>     > > >
>     > > > Does anyone who is using VSCode has problem with debugging app?
> I've
>     > > > created Hello World app and tried to debug it but debugger
> cannot connect
>     > > > with app at all. When I hit Menu "Debug" -> "Start Debugging" -
>     > > Application
>     > > > has been launched, but debugger seems to be dead, no stop on
> breakpoints.
>     > > >
>     > > > My asconfig [1], launch.json [2]. I'm using JS only Nighly build
> of
>     > > Royale
>     > > > - I have just tested with build number #926.
>     > > >
>     > > > VSCode version: Version 1.23.1
>     > > > AS3 & MXML Engine: 0.12.0
>     > > >
>     > > > Anyone experience the same ? Or can check whether have the same
> problem?
>     > > >
>     > > > [1]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FulBB&data=02%7C01%7Caharui%40adobe.com%7Ca4c16903fac8469646d508d5cbd7ad0e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636639049541335043&sdata=5rmuDZWmShyGioM5zw8DonS1O9GUb6CylZ7PZBgEsAE%3D&reserved=0
>     > > > [2]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2Fg8I5&data=02%7C01%7Caharui%40adobe.com%7Ca4c16903fac8469646d508d5cbd7ad0e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636639049541335043&sdata=2FALKUaqx7UqGViyAQfHI1Z%2FY2GMr3pzCRULyPNrEwM%3D&reserved=0
>     > > >
>     > > > Thanks,
>     > > > --
>     > > >
>     > > > Piotr Zarzycki
>     > > >
>     > > > Patreon: *
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Ca4c16903fac8469646d508d5cbd7ad0e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636639049541335043&sdata=NOIQg1XUq32ic48TBm0cVBd25wbh2uu2XBlE6zfFbDo%3D&reserved=0
>     > > > <
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Ca4c16903fac8469646d508d5cbd7ad0e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636639049541335043&sdata=NOIQg1XUq32ic48TBm0cVBd25wbh2uu2XBlE6zfFbDo%3D&reserved=0
> >*
>     > > >
>     > >
>     >
>
>
>

-- 

Piotr Zarzycki

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

Reply via email to