you should check if we're in debug mode, and if not, return early, so that we don't do useless operations that won't be written anyway.