Condense debug logic in management console