Revert "Auto-register while debugging."

This reverts commit c8c5195a989f9279f1935c1045257ea48d3771fa.
Add a some logging.