3

Why is my app not responding? Oh… I’ve hit a breakpoint!

 1 year ago
source link: https://colinmackay.scot/2022/11/19/why-is-my-app-not-responding-oh-ive-hit-a-breakpoint/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Why is my app not responding? Oh… I’ve hit a breakpoint!

Have you ever run your app from Visual Studio to have it suddenly stop responding and you can’t immediately see why, only to discover that you’ve hit a breakpoint and didn’t realise because Visual Studio is now running behind the window you’re looking at (or on a monitor you weren’t looking at). Well, as of Visual Studio 17.4 (November 2022 release) you can now assign a sound to hitting a break point so that you get an audio warning when that happens.

To get this, first go to Tools–>Options, and typing “Audio Cues” into the search, then checking the “Enable Audio Cues” check box.

image.jpeg?w=800

Next you have to open up the system sounds dialog in order to assign a sound to the event. From the Windows Start Menu search for “Change System Sounds”

microsoftteams-image-3.png?w=1024

And then selecting the “Sounds” tab, and scolling to the “Microsoft Visual Studio” section and selecting “Breakpoint Hit” as the event. You can then assign a sound to the event.

image-1.jpeg?w=634

Once you apply this change, you will then get an alert sound when a breakpoint is hit while you are debugging your code.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK