How to catch runtime errors from browser like Bolt.new?

How to catch runtime errors from browser like Bolt.new??