Add debug info in setscheduler