Debug for scheduler