From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Beyond the basic breakpoint

Beyond the basic breakpoint - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Beyond the basic breakpoint

- [Instructor] Now that you are comfortable with breakpoints, it's time to expand our concepts of what can be done with these breakpoints. In this video, we'll look at adding breakpoint conditions using hit counts, creating action and function breakpoints, and using the breakpoint window. We'll start the demo by debugging. And I'll show you what this application can do first. Right now, when I select a color and click on the button, it changes the color of this ellipse to the selected color, like that. I want to create a conditional breakpoint that only stops my code when the color value is orange. For hit counts, when I click on this button, it shows 50 symbols on the screen. I'd like to stop this loop when I hit a certain value. For instance, instead of at 50, I'd like to stop at 12. I'd also like to be able to have a conditional. When this checkbox is checked, it stops and hits my breakpoint. Switch over to Visual Studio. Let's add the breakpoint window. To do that, I'll go to the…

Contents