When using ECS, what are the methods available for debugging?

If want to print logs, can use UnityEngine.Debug.Log, or is it recommended?

Additionally, what are the common techniques for debugging, besides using the ECS-provided windows like observing entities/systems?

This is what I use (works in Burst) but there’s also a logging package.

Besides logging and using the ECS windows, a good one is to check the timeline view of the profiler and make sure that the order of things happening line up with what you expect. If you have issues with exceptions, another good idea is to disable all systems from executing after one of them throws an exception. It is a bit tricky to set up, but it is worth it if you do it.

1 Like