You can create and manipulate breakpoints in your code at any time. In order to run the debugger, you must have breakpoints set in your code so the debugger knows where to pause execution so you can examine the values of variables, step through lines of code, and fix errors.
In the Quote_1 project, open the quote.cc file.
Set a line breakpoint by clicking in the left margin of the Editor window next to line 171 (response = readChar("Enter disk module type: (S for single disks, R for RAID; Q - exit)", 'S');). The line is highlighted in red to indicate that the breakpoint is set.
You could remove the breakpoint by clicking on the icon in the left margin.
Choose Window > Debugging > Breakpoints to open the Breakpoints window. Your line breakpoint is listed in the window.
Choose Debug > New Breakpoint (Ctrl+Shift+f8) to open the New Breakpoint dialog box.
In the Breakpoint Type drop-down list, set the type to Function.
Type the function name Customer::GetDiscount in the Function text field. Click OK.
Your function breakpoint is set and is added to the list in the Breakpoints window.
You can group breakpoints using several different categories such as per file, per project, by type, by language, etc.
Choose Window > Debugging > Breakpoints window.
Click the Select Breakpoint Groups icon.
Select the breakpoint group.
The breakpoints are arranged according to your selection.