pattern-debug

Debug pattern errors systematically