If I create a page variable that is an object with multiple properties (e.g. name, age, etc.) and then I bind an input field to one of the variable’s properties (e.g. testRecord.name), the debugger can act strangely when looking at the state of page variables after the user edits that value.
When the variable is first created, the debugger shows this variable and all of its properties as it should:
{
"testRecord" : {
"age" : int 0
"name" : string ""
"member" : bool false
}
}
Once the user edits the input field, the debugger seems to forget the variable’s schema and just shows it as a string containing the value just edited:
{
"testRecord" : string "John Smith"
}
Experiments show that the variables are working correctly, it's just the debugger that shows them as mangled.
This behavior makes it hard to debug object variables when their properties are directly bound to input fields.
Build Type = Preview
Client Runtime Version = 3.2.14
Parser Version = 7.0.3
App ID = 311476
Page in app = (only page)
Device = Samsung Note 9
OS = Android 10