Play a sound when a breakpoint is hit in Visual Studio
This article was originally published for www.prowareness.com and could be located at http://www.prowareness.com/blog/play-a-sound-when-a-breakpoint-is-hit-in-visual-studio/.
Alright, previous post showed you how you could put a Stopwatch while debugging an x64 application in visual studio, now let’s see how you could play a sound when you hit a breakpoint.
This tip is very handy when you are debugging a long running process (say a data import, or third party service call of some sorts), and you just don’t want to stare at the screen like hungry cat. Or you are working on two different workstations and you want a ding or a buzz or a chime when you hit a breakpoint; whatever the reason is, just want to be notified by a sound.
To enable this feature in Windows 7, follow the steps below.
Start –> Type in Change system sounds –> Program Events: –> (scroll down to) Microsoft Visual Studio –> Breakpoint Hit
Select a .wav file under Sounds:
That’s it. Try a sample app for yourself, put a breakpoint and relish.