From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

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

Multiple breakpoints with Inline Breakpoints

Multiple breakpoints with Inline Breakpoints - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Multiple breakpoints with Inline Breakpoints

- We'll close out this course by looking at a few debugging tips. And the first tip I want to talk about is the difference between whole-line breakpoints and inline breakpoints. How do you like to add your breakpoints to your code? Well, one way a lot of us use is F9. You press F9 when your cursor's on a line of code, and it puts a whole-line breakpoint. You see the red dot over here in the margin, and it's highlighted the entire line. It's the same if I go to line 18, and I click here in the margin, I get the same idea. But other places in your code, like this for-loop, when I press F9 you see that it doesn't highlight the entire line. It highlights just the initializer. And that's easy to understand if you realize that this for statement here at the top is really broken down into three parts. There's the initializer, which is this bit of code, this condition, which is this bit of code here, and the iterator, which is…

Contents