Search code examples
androiddebuggingrealm

Android Realm - debugging


I want to see the values of Realm object variables

For Example:

Student (int studentID, ArrayList <Subject> subjectList)

Subject (int subjectID, String subjectName)

I want to see the names of subjects in a student object when debugging using Android Studio.

Where should I look in android studio debug window to find a student's the subjects list?


Solution

  • Realm proxies your model objects and is a zero-copy storage system so in order to inspect the value of a field you need to use the evaluate expression feature of the debugger.

    We are considering the possibility to write a plugin for the debugger to show the values directly, but that is still at an investigation stage.