I am talking about, for example, debris in a gun barrel causing the barrel to explode. I would think that if the debris were less resistant than the metal of the barrel, then the expanding gases would tend to force the debris out of the barrel. But at least in movies and what I think I have read, debris can have a much bigger effect and in fact, can cause the gun to explode.
If this is true, what causes this effect? Again, why is enough force generated to damage the gun rather than dislodging material like, I don't know, soot or the remnants of gunpowder after it burns?