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

Use breakpoints effectively - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

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…

Contents