Fixing your Combine code with Instruments

Last updated: 20 days ago

Instruments, and more specifically a very special custom Instrument, can give you super powers when it comes to debugging, profiling, and ultimately fixing your asynchronous code be it Combine or another framework for asynchronous programming based around streams of events.

Meet a new custom Instrument that allows you to easily:

  • visually plot multiple publisher subscriptions on an interactive timeline
  • easily find and inspect failing subscriptions
  • follow in time the values emitted by your subscriptions

All of this is easily accessible via the super-polished Instruments UI with all of the bells and whistles you're used to like drilling down hierarchies, filtering, zooming in and out of time, creating time slices, and more.