A blowtorch would indeed do the trick. But if the white or yellow glue
is still wet, soaking and rubbing well in plenty of water should too,
and leave your clothes intact. Assuming the glue has dried, I think
you have a new pair of shop/lawnmowing pants. If it's dried, I would
try soaking in water, but I doubt it would all come out. What were you
doing wearing good clothes in the shop anyway?