Set debug stuff to be compiled only in debug mode.
Removed now obsolete debugging for ReadMethodGenerator.

Revert this commit to get this feature back.