Improve debug output for greedy matcher