We show that a microscopic definition of crystal defect, based on the effective mean singleparticle potential energy, makes it possible to detect and visualize various types of local and extended crystal defects and develop an effective algorithm for tracking their time evolution. PACS. 02.70.Ns Molecular dynamics and particle methods – 61.72.Bb Theories and models of crystal defects