debug directory matching