You misunderstood me: I'm proposing `debug_collect` function for the native php (for using in controllers).