5 ms·
Xcode has this functionality. You can attach a system sound to a breakpoint. I used it exactly once when I was trying to determine if two events always happened
by tylerc230 2y ago
Xcode has this functionality. You can attach a system sound to a breakpoint. I used it exactly once when I was trying to determine if two events always happened in the same order and were always equally spaced in time. It worked well but drives you sort of mad after a while.
- klausa 2y agoOne interesting way of using this I've heard of; is attaching it to a `-[UIViewController dealloc]`, and being able to "hear" (or rather notice the lack of sound) retain cycles this way.
- iosguyryan 2y agoThis is the way
- karmelapple 2y agoI've used it so many times doing that, and also handling UIWebView events where I didn't know what all might happen. Really helpful.
- mrbombastic 2y agoXcode has all sorts of cool stuff you can do with breakpoints, one I used more often than sound is logging a value on a breakpoint and continuing execution.