Move RHDebug code to post process