We report on a new instrument, which consists of a Kerr microscope combined with resistance measurements. This setup allows for the recording of magnetic domains while measuring the anisotropic magnetoresistance (AMR). For this purpose the development of a special sample holder and the extension of the measurement software was required. The sample holder is equipped with electrical contacts in such a way to apply a current, measure the voltage, and use it in the Kerr microscope. The extension of the measurement software enables the recording of resistance and Kerr images simultaneous. The new setup allows for a better microscopic understanding of the AMR behavior.