wrap debug messages in editor conditional