flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Héctor A <neverbi...@gmail.com>
Subject Re: About FDB
Date Thu, 11 Dec 2014 00:22:29 GMT
Sorry, sometimes my communication skills leave to be desired... I'll do my
best:

1.- Setting values: Right now FDB only allows to set the value of simple
variables (numeric types, strings, and booleans). I improved some debugging
features in FlashDevelop, like live edition of variables, however, not
being able to modify the value of any object variable makes this feature
quite limited when it could be quite useful for everyone.

2.- Type checking: You cannot get the type of a variable through FDB, you
get the type of its value, calling variable.getValue().getType(). The
available values are listed in VariableType:

https://github.com/apache/flex-sdk/blob/develop/modules/debugger/src/java/flash/tools/debugger/VariableType.java

  When a String is null you cannot know it's a String, since the type of
the value is 6 (NULL), this is a problem because allowing the users to
modify some null variable may mean they are trying to change some Object,
and when doing so the player could even crash.

On Thu, Dec 11, 2014 at 12:17 AM, Alex Harui <aharui@adobe.com> wrote:

> It might also be a good idea to create a JIRA ticket.
>
> I'm actually not quite sure what you mean in your two "wishes": setting
> values and determining types.  Can you give me an example or more details?
>
> Thanks,
> -Ale
> ________________________________________
> From: Héctor A [neverbirth@gmail.com]
> Sent: Wednesday, December 10, 2014 1:55 PM
> To: dev@flex.apache.org
> Subject: Re: About FDB
>
> I know Apache has the code, and I wouldn't mind looking into it myself, but
> my lack of time makes it imposible, so I'm posting here, since support for
> workers was added by a team member not long ago, maybe he or someone else
> knows about the feasibility of this, which would be enough at this moment.
> Another thing that bothers me is how FDB currently only gives you the type
> of a variable value, not the type of the variable itself, so for null
> strings you cannot know it's a string, because the value type is "null".
>
> The "rewind" feature can be seen here:
>
> http://tv.adobe.com/watch/max-2011-sneak-peeks/max-2011-sneak-peek-reverse-debugging-in-flash-builder/
>
> It's been more than 3 years since then, so I don't recall all the details,
> maybe they gave some detail about the implementation in the presentation,
> but I doubt so.
>
> On Wed, Dec 10, 2014 at 10:37 PM, Alex Harui <aharui@adobe.com> wrote:
>
> > Apache Flex has the code for FDB, so feel free to try to improve it.  I
> > don’t know it that well, but some of the features you are talking about
> > may require player/VM changes and therefore unlikely to happen.
> >
> > Do you have a link to information about the “rewind” debugger?  It might
> > have also required a player change.
> >
> > -Alex
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message