carry a chain tool. if your chain breaks, turn your bike into a singlespeed.
wrap the chain around your small ring, and a medium sized cog. shorten as necessary. dont forget to bypass the derailler.
it'll get you to a bike shop where you can pick up a new chain.