Revert "debug: make the Kernel leaner - picked from @morfic"

This reverts commit 4f38bacc1b9832d5075a84347f8432f7f0add646.