Debugging - do not invoke getter when there is none - avoid freezing

This commit is contained in:
Jindra Petřík
2023-11-10 20:26:04 +01:00
parent 136b389fc1
commit 828db71e81
5 changed files with 10 additions and 7 deletions

View File

@@ -301,7 +301,7 @@ public class Main {
if ((v.vType == VariableType.OBJECT || v.vType == VariableType.MOVIECLIP)) {
objectId = (Long) v.value;
}
Object oldPos = getDebugHandler().getVariable(objectId, "position", true).parent.value;
Object oldPos = getDebugHandler().getVariable(objectId, "position", true, true).parent.value;
getDebugHandler().setVariable(objectId, "position", VariableType.NUMBER, 0);
icf = getDebugHandler().callFunction(false, "readUTF", v, new ArrayList<>());
System.out.println("Result=" + icf.variables.get(0).value);