A dishwasher that trips its breaker specifically during the dry cycle, and not during washing or filling, almost always points to the heating element or the circuit that powers it. The dry cycle is the one part of the cycle where the heating element runs continuously at full power (rather than cycling on and off briefly to heat wash water), so it's also the moment when a weak component or a marginal circuit is most likely to fail.
The most common cause is a heating element that has developed an internal short. Over years of use, the element's insulation can break down from moisture, mineral buildup, or simple age. When the element is asked to draw full current for an extended period during dry, the short shows up as a sudden current spike, and the breaker trips to protect the wiring. A multimeter test on the element (checking resistance and checking for continuity between the element and the dishwasher frame, which should read infinite/no continuity) can confirm this. A shorted element needs to be replaced; it cannot be safely repaired.
The next most likely culprit is the dishwasher's internal wiring or the dry-cycle relay on the control board. If moisture has gotten into the control board or a wire has chafed against the metal tub over time, a short can occur only when that specific circuit energizes for drying. This is harder to diagnose without opening the control panel and should generally be left to an appliance technician, since it involves both the control board and live wiring.
It's also worth ruling out the breaker and outlet circuit itself. If the dishwasher is on a shared circuit with a garbage disposal, microwave, or other heavy-draw appliance, the combined load during the dry cycle (when the dishwasher's draw peaks) may simply exceed the breaker's rating. A breaker that is old or has been tripped many times can also become more sensitive and trip at lower currents than it's rated for; swapping it for a new breaker of the same rating is inexpensive and worth trying before replacing appliance parts.
Less commonly, a failing heating element relay stuck in a bad position, or a blocked vent that causes the element to overheat and the thermal protection circuit to fault abnormally, can also cause a trip. Condensation pooling on the control board from a worn door gasket is another sneaky cause, since water dripping onto electronics during the hot dry phase can create a short that only shows up then.
Given that this involves a heating element and household wiring, don't just keep resetting the breaker and running the dishwasher — a persistent short increases fire risk. If testing the element and swapping the breaker doesn't solve it, call an appliance repair technician or electrician to check the dishwasher's internal wiring and the dedicated circuit before using it again.