Scene debug

Implement scene debug (enabled by default on Debug build and disabled on Release build unless debug_flag is enabled)