Methods and apparatus are disclosed for reducing damage caused by a dielectric breakdown during surgical application of a pulsed-electric field (PEF) device. By detecting a dielectric breakdown when it occurs or before it occurs, the properties of the pulsed electric field can be adjusted to reduce damage caused by the energy released during the breakdown. A dielectric breakdown or its precursor can be detected optically, acoustically, or electrically.