Debug refining