The invention relates to a process and to a device for producing a pore-containing foodstuff, the matrix of which enclosing the pores contains starch. The process is characterized in that the dough is flowable, is admixed with pressure gas and is expanded through a nozzle into an adjacent flow-through channel so that the raw dough containing pressure gas foams in the flow-through channel. For warming of the foamed dough the flow-through channel has a section which is directly adjacent and has at least two electrodes arranged on its circumference for applying current to the foamed dough.