Right now, if we crash some place, we can't look at all components attached to an Entity. This makes debugging really cumbersome.
Maybe write a DebugDumpComponents method that grabs all components attached to an Entity, return it as an iterable array (which the debugger can traverse), and call it right before throwing an exception.
Or, and this is really hacky, but maybe in the debug version, make a field in Entity that points to this array/list of components.
Right now, if we crash some place, we can't look at all components attached to an Entity. This makes debugging really cumbersome.
Maybe write a DebugDumpComponents method that grabs all components attached to an Entity, return it as an iterable array (which the debugger can traverse), and call it right before throwing an exception.
Or, and this is really hacky, but maybe in the debug version, make a field in Entity that points to this array/list of components.