pattern editor debug