Skip to content

Commit d334114

Browse files
committed
feat: Enhance field debugging in DebugUtils
1 parent 465392f commit d334114

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/utils/DebugUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
public class DebugUtils {
1313
public static void debugFields(Class<?> cls, Object thisObject) {
1414
if (cls == null) return;
15-
XposedBridge.log("DEBUG FIELDS: Class " + cls.getName());
15+
XposedBridge.log("------------------------------------");
16+
XposedBridge.log("DEBUG FIELDS: Class " + cls.getName() + " -> Object " + thisObject);
1617
for (var field : cls.getDeclaredFields()) {
1718
try {
1819
field.setAccessible(true);
@@ -21,7 +22,7 @@ public static void debugFields(Class<?> cls, Object thisObject) {
2122
if (value != null && value.getClass().isArray()) {
2223
value = Arrays.toString((Object[]) value);
2324
}
24-
XposedBridge.log("FIELD: " + name + " -> VALUE: " + value);
25+
XposedBridge.log("FIELD: " + name + " -> TYPE: " + field.getType().getName() + " -> VALUE: " + value);
2526
} catch (Exception ignored) {
2627
}
2728
}

0 commit comments

Comments
 (0)