To set a location breakpoint:
Click the line where you want the breakpoint.
Click the Stop At button.
The line is highlighted in red to indicate the breakpoint is set. If the line selected is not an executable line of source code, the debugger sets the breakpoint at the next line after the specified line that is executable.
To set a function breakpoint:
Select the name of the function where you want the breakpoint.
Click the Stop In button.
A message in the message area tells you that the breakpoint is set.
To remove a breakpoint, do the following: