The dependence of defect detection by cathodoluminescence in a scanning electron microscope on the electron beam current is considered. The examined specimens are AlGaAs/GaAs laser heterostructures with InGaAs quantum well. It is shown that for low electron beam currents, which are typically used, the uniform cathodoluminescence is observed, while for the increasing high electron beam current the oval defects become more and more visible. The influence of electrical properties of the structure on the luminescence detection is explained.