Hacker News new | past | comments | ask | show | jobs | submit login

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.



One 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.


I've used it so many times doing that, and also handling UIWebView events where I didn't know what all might happen. Really helpful.


This is the way


Xcode 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: