A method and a system for producing the method are disclosed whereby irreversible electroporation pulses are produced across an area of target tissue. A medical imaging device is used to create an image of the irreversible electroporation in real time thereby making it possible to determine the area of electroporation and the extent of results obtained and to adjust the positioning of electrodes and/or the current as needed based on the image being viewed.