Breakpoints

Breakpoints are markers you place in your program to tell the debugger to stop your program whenever execution reaches that point. For example, if you suspect that a particular statement in your program is causing problems, you could set a line breakpoint on the line containing the statement, then run your program. Execution stops at the breakpoint before the statement is executed. You can then check the contents of variables and view the call stack, and execute the statement to see how the problem arises.

The debugger supports the following types of breakpoints:

You can set the frequency and conditions on line breakpoints and the frequency of watch breakpoints. When you run a program with a line breakpoint, execution stops at the breakpoint before the statement is executed, if the breakpoint condition is met.

When you start debugging a program for the first time, no breakpoints are set unless you created them in the editor prior to debugging. During the debug session, you may set breakpoints. When you exit the debugger, breakpoints are saved. The next time you start debugging the same program, all line and watch breakpoints will be restored, however watch breakpoints will restore as disabled.


Feedback