Читать книгу Beginning Programming All-in-One For Dummies - Wallace Wang - Страница 99

Breakpoints

Оглавление

A breakpoint lets you skip over the parts of your program that you already know work. So, if you have a program that’s 10,000 lines long and you know the problem is somewhere in the last 1,000 lines of code, there’s no point in stepping through those first 9,000 lines of code.

A breakpoint lets you tell the computer, “Skip from the beginning of the program to the breakpoint, and then step through the rest of the program line-by-line.” Figure 4-7 shows how you can highlight a line with a breakpoint. That way your program runs from the beginning to the first breakpoint. After your program stops at a breakpoint, you can step through the rest of your program line-by-line.


FIGURE 4-7: Breakpoints let you skip over parts of your program that you don’t want to examine line-by-line.

Beginning Programming All-in-One For Dummies

Подняться наверх