realm-swift
realm-swift copied to clipboard
Intclude type info in `Object has been deleted or invalidated` exception
It would be great if realm could include type info (or even more, like NSZombie) in exceptions. I've frequently received crash reports from lines like the following:
self.lessonMetadata.difficulty = (float)self.blueWords.count / (float)self.lessonData.words.count;
And it's difficult to determine whether the error was from lessonMetadata
or lessonData
, which would help in fixing the crash. (Both are RLMObject
subclasses).
Goals
Quickly identify which objects have been invalidated.
Expected Results
Crash reports include as much info about type as possible.