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.
Use breakpoints effectively - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
Use breakpoints effectively
- [Instructor] Breakpoints are a fundamental tool in debugging application code. In this video, I'll show you some of the breakpoint basics. The first step is to look at our code. I'm in a WPF application. The code that we'll be exploring is in this MainWindow.xaml. It has two buttons here, and if you look at the code behind, there's two click handlers. In this first button handler, I'm declaring some variables and then I'm building up a string and outputting it to a text block. In the second method, I'm declaring some variables. These are numeric variables. I'm doing some math operations, and then I'm up-putting the results. The only purpose of this code is so that I have a place to put breakpoints, so I can show you how to add and remove breakpoints and some of the other tools inside Visual Studio. Let's see what happens when we debug the application. To start this conversation, I'll go to the debug WPF application and choose show all files. Then I'll open this bin folder. And if…
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)
-