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 - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Set the start-up project49s
-
(Locked)
Use breakpoints effectively6m 27s
-
(Locked)
Step through code in the debugger7m 21s
-
(Locked)
Modify code while debugging with Edit and Continue3m 32s
-
(Locked)
See debug information with DataTips4m 51s
-
(Locked)
Use the Watch, Locals, and Autos windows5m 13s
-
(Locked)
Beyond the basic breakpoint9m 2s
-
(Locked)
Evaluate performance with PerfTips3m 50s
-
(Locked)
-