Add rewriter debugging tool