The invention discloses a device and a method for evaluating the performance of a foam scrubbing agent and a defoaming agent under high-temperature and high-pressure conditions, and the device comprises a gas source control module, a
liquid phase control module, a
simulation shaft, a constant-temperature
pool, a defoaming tank, an intermediate container, an
injection pump and a visual constant-temperature box, the gas source control module and the
liquid phase control module are respectively communicated with the bottom of the
simulation wellbore through pipelines, the top of the
simulation wellbore is communicated with the defoaming tank through a pipeline, and a connecting pipeline of the simulation
wellbore and the defoaming tank passes through the constant-temperature
pool; and the pipeline between the constant-temperature
pool and the defoaming tank is communicated with an intermediate container for injecting a defoaming agent and an
injection pump. The real output condition of a gas well is simulated, the real injection conditions of a foam scrubbing agent and a defoaming agent are simulated, and the performance of the foam scrubbing agent and the performance of the defoaming agent are integrally evaluated; stable output of a large amount of continuous high-pressure
nitrogen is realized, and the stability of a gas source in a simulation evaluation process is ensured; gas-liquid separation and metering can be realized, the amount of defoaming liquid and the amount of non-defoaming liquid are distinguished, and quantitative evaluation of the defoaming property of the defoaming agent is completed.