Handling float values in the debugger #4169
Replies: 3 comments 1 reply
-
|
This might be an update required by the JPEXS FFDecs debugger to handle the newer |
Beta Was this translation helpful? Give feedback.
-
|
FFDec supports float values, but ADL which communicates with FFDec through debug protocol, just does not sends them, it sends undefined type instead. This is a discussion mainly about updating the ADL (Air debug player or how you name it), not just FFDec. |
Beta Was this translation helpful? Give feedback.
-
|
In the debugger protocol: Expected behaviour: InGetVariable contains float written as kNumberType or some new type. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use JPEXS FFDecs debugger on AIR generated SWFs
using ADL. It works pretty well, but I found out that for float variables,
ADL does not send values of type float.
Here is related method to reading value (readAtom)
https://github.com/jindrapetrik/flashdebugger/blob/cf3551fc28660c77efcf7c63626341c1bb6149e0/src/com/jpexs/debugger/flash/InDebuggerMessage.java#L345
from the debugger (similar code to what FDB uses).
For float values, we receive kUndefinedType object type.
Here is situation from the debugger UI:

Is there a chance you can somehow make it working? Maybe create new type constant for floats (which will be ignored by old debuggers)
At first I thought floats can be sent as kNumberType,
but it looks like float values are not Numbers.
var i:int = 5;
var a:float = 10.5f;
a is Number //false
i is Number //true
typeof(a) //float, not number
typeof(i); //number
So int is number, but float is not number, that is weird, but I can live with it.
The readAtom reads kNumberType as string and then convert them so it probably does not matter if there will be also converted float, although it is "not a Number".
What do you think?
Is there a way how the debugger can read/write float values?
Thank you for any response.
Beta Was this translation helpful? Give feedback.
All reactions