Using Breakpoints

A breakpoint is a place in your code where you want to temporarily break out of the run-time environment without actually ending your program, so that you can examine the code during execution. A breakpoint (and you can have as many as you want at one time) is a lot like a Pause button.

The F9 key toggles a breakpoint for the selected line of code, which is marked (using the default colors) by a brown dot in the margin and brown background for the line of code (see Figure 31-15). You can create breakpoints only in lines of executable code, which excludes blank lines, comments, and even lines where you declare a variable.

Figure 31-15. If a new task is successfully created in this function, this breakpoint never gets hit and execution proceeds normally.

Note Press Ctrl+Shift+F9 to clear all breakpoints from your code.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment