Debug detection