Re: Debugger statement

2017-08-01 Thread Alex Harui
I'll pass that on to my manager, but I don't think that will be the key
argument.  I've mentioned lots of mx_internal APIs over the years and they
were also considered undocumented.

My argument right now, which I hope will win, is that discovery of any
API, not just this one, by examining open source is not reverse
engineering.  I was unable to find the original Tamarin source, but Red
Tamarin does have enterDebugger and assuming they did not get it via
rummaging through playerglobal.swc, then it might be ok to use, but remain
undocumented, which means it could get pulled from or modified by future
flash player revisions but Apache Flex could still use it.

FWIW, I did not know about enterDebugger myself, so I often just wrote
code that did:

if (somecondition)
  trace("stop here");

And set a breakpoint on that trace statement.  You could always do that
for now and instruct folks to set a breakpoint on that line of code.

Thoughts?
-Alex

On 8/1/17, 6:47 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:

>Would it be helpful if someone from Adobe talked about
>flash.debugger.enterDebugger() publicly? I assume that user mmorearty on
>the official Adobe forums may be Mike Morearty from the Flex team, and he
>mentions it in this thread:
>
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforums.ad
>obe.com%2Fthread%2F247021=02%7C01%7C%7C323d3bb38210471a563d08d4d8e3ff
>b5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636371921136496388=L
>EuZYzHxshbJ3PpcNRvy96KC2SF2yOUPUSuHpYZYrvQ%3D=0
>
>- Josh
>
>On Mon, Jul 31, 2017 at 5:46 PM, Alex Harui <aha...@adobe.com.invalid>
>wrote:
>
>> I'm still trying to get the ok to use undocumented APIs without
>>violating
>> the Flash EULA which prohibits reverse-engineering.  Could just make it
>> JS-only for now.
>>
>> -Alex
>>
>> On 7/31/17, 3:01 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>>
>> >If there are no objections in the next 24 hours, I plan to merge my
>> >"feature/debugger-statement" branch that adds a "debugger" statement to
>> >ActionScript similar to the one available in JS.
>> >
>> >Use of the debugger statement is completely optional, but it's a useful
>> >way
>> >to trigger the debugger from code in a cross-platform way. In other
>>words,
>> >the following code will just work whether you're running the generated
>>JS
>> >or SWF:
>> >
>> >if(x > 100)
>> >{
>> >debugger;
>> >}
>> >
>> >- Josh
>>
>>



Re: Debugger statement

2017-08-01 Thread Josh Tynjala
Would it be helpful if someone from Adobe talked about
flash.debugger.enterDebugger() publicly? I assume that user mmorearty on
the official Adobe forums may be Mike Morearty from the Flex team, and he
mentions it in this thread:

https://forums.adobe.com/thread/247021

- Josh

On Mon, Jul 31, 2017 at 5:46 PM, Alex Harui <aha...@adobe.com.invalid>
wrote:

> I'm still trying to get the ok to use undocumented APIs without violating
> the Flash EULA which prohibits reverse-engineering.  Could just make it
> JS-only for now.
>
> -Alex
>
> On 7/31/17, 3:01 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>
> >If there are no objections in the next 24 hours, I plan to merge my
> >"feature/debugger-statement" branch that adds a "debugger" statement to
> >ActionScript similar to the one available in JS.
> >
> >Use of the debugger statement is completely optional, but it's a useful
> >way
> >to trigger the debugger from code in a cross-platform way. In other words,
> >the following code will just work whether you're running the generated JS
> >or SWF:
> >
> >if(x > 100)
> >{
> >debugger;
> >}
> >
> >- Josh
>
>


Re: Debugger statement

2017-07-31 Thread Alex Harui
I'm still trying to get the ok to use undocumented APIs without violating
the Flash EULA which prohibits reverse-engineering.  Could just make it
JS-only for now.

-Alex

On 7/31/17, 3:01 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:

>If there are no objections in the next 24 hours, I plan to merge my
>"feature/debugger-statement" branch that adds a "debugger" statement to
>ActionScript similar to the one available in JS.
>
>Use of the debugger statement is completely optional, but it's a useful
>way
>to trigger the debugger from code in a cross-platform way. In other words,
>the following code will just work whether you're running the generated JS
>or SWF:
>
>if(x > 100)
>{
>debugger;
>}
>
>- Josh



Re: Debugger statement

2017-07-31 Thread OmPrakash Muppirala
+1

I so used to doing this nowadays.  Also, this is very useful when we want
to debug Node.js applications.  There is no good way to setup debug points
the first time with Node.js applications.

Thanks,
Om

On Mon, Jul 31, 2017 at 3:01 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> If there are no objections in the next 24 hours, I plan to merge my
> "feature/debugger-statement" branch that adds a "debugger" statement to
> ActionScript similar to the one available in JS.
>
> Use of the debugger statement is completely optional, but it's a useful way
> to trigger the debugger from code in a cross-platform way. In other words,
> the following code will just work whether you're running the generated JS
> or SWF:
>
> if(x > 100)
> {
> debugger;
> }
>
> - Josh
>


Re: Debugger statement

2017-07-31 Thread piotrz
Hi Josh,

+1.

Unfortunately didn't have time to try this one, but it seems to be very
useful and I will definitely make an first attempt of use when I get my
hands back onto framework code. :)

Thank you for this feature!
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Debugger-statement-tp63618p63619.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Debugger statement

2017-07-31 Thread Josh Tynjala
If there are no objections in the next 24 hours, I plan to merge my
"feature/debugger-statement" branch that adds a "debugger" statement to
ActionScript similar to the one available in JS.

Use of the debugger statement is completely optional, but it's a useful way
to trigger the debugger from code in a cross-platform way. In other words,
the following code will just work whether you're running the generated JS
or SWF:

if(x > 100)
{
debugger;
}

- Josh