I did this at one point when trying to debug the switch over to
binaries instead of lists (which is still incomplete, ugh). We might
be able to do this with a simple macro, like ?DEBUG("some message")
where you can -define(DEBUG(_Msg), ok). to turn it off, or
-define(DEBUG(Msg), io:format(Msg)). to turn it on.