Adds debug mode to netty