realm-swift icon indicating copy to clipboard operation
realm-swift copied to clipboard

Intclude type info in `Object has been deleted or invalidated` exception

Open timothycosta opened this issue 7 years ago • 0 comments

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.

timothycosta avatar Jun 28 '17 03:06 timothycosta