[Debugging] Re-add scheduler listing debug erroneously removed.

(cherry picked from commit d51ea895418f2784c510c693f9d6ab5503cab1c3)