Add debug info to pattern-nodes.