From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Add breakpoints to code

Add breakpoints to code

- [Instructor] Breakpoints are a fundamental tool in debugging application code. In this video, I'll show you some of the breakpoint basics. Some of this will be review, as you've seen me use to start debugging tools to run the application, but now I'll be using breakpoints to actually debug the applications. From this first button handler, I'm declaring some variables, and then I'm building up a string, and then I'm outputting the information to the screen. In the second method, I'm declaring some numeric variables, then I'm doing some math, and then I'm outputting the results. The only purpose of this code is to 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. One way to add a breakpoint is go to your gray margin over here on the side, and click where this black dot is. Now, which line you're clicking determines whether you can add a breakpoint. If I click on this line of code, this is not an…

Contents