Debug matrix