3 ms·
For those interested, Xcode lets you configure sounds to be played when a breakpoint is reached. It can also be set up to conditionally play a sound. Those bre
by ElFitz 2y ago
For those interested, Xcode lets you configure sounds to be played when a breakpoint is reached. It can also be set up to conditionally play a sound.
Those breakpoints can also be configured to continue running the app instead of pausing.
It can quickly get out of hands though.
- e28eta 2y agoIt can be super useful for detecting the timing or relative ordering of code blocks. Something like “what order are these 2-3 methods called in and does it vary?” is so easy to hear as you navigate through an app. Or if you’re doing something async / interactive / whatever, and don’t want to stop the app, but do want to know when a code block executes. I wish it had more short & distinctive sounds to choose from though! edit: I think I found this project while working at a previous job, but haven’t used it recently: https://github.com/matthewreagan/Xcode-Breakpoint-Sounds https://github.com/matthewreagan/Xcode-Breakpoint-Sounds
- samatman 2y agoI've avoided XCode thus far, but I'm going to have to see if there's a way to add this by Python scripting LLDB, because there are certain kinds of tracing where sound is probably the optimal medium. It's mind-numbing to try and catch unexpected orderings using printf debugging, and step debugging makes this worse not better. I'm thinking that for up to five events (which covers a lot of ground) this would be pretty sustainable with the pentatonic scale. Any combination of pentatonics is reasonably pleasant, and it would be very easy indeed to hear a permutation in the expected melody. I think this is something I could keep doing without suddenly developing an extreme aversion to it. It would still be necessary to use headphones to prevent casuals from being exposed, though. It wouldn't be that melodic...