How does USE_RELAY_DEBUG work (with Relay/Relax)?

However, I want to dump the IR module after each passes. Do I have to do it manually? It seems this post wants to achieve what I want.