Debugging Combine with OSLog

Since heavily adopting Combine in some of our work, we’ve found debugging much harder than typical closure-based asynchronous code. Pyramid of Hell was, well, hell. On the flip side, we found reading those stack traces much easier. In Combine, it’s fairly well detailed that stack traces are super long or way too short, making it super difficult to reason about:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Joe Williams

iOS Engineer @ Sky Betting & Gaming | Indie Dev @ Expodition Podcast App