4.9.2 Hardware or Software Breakpoint Selection

To select hardware or software breakpoints:

  1. Select your project in the Projects window. Then select File > Project Properties or right click and select Properties.
  2. In the Project Properties dialog (under Categories), select ICD4.
  3. Under Option Categories, select Debug Options.
  4. Select Use software breakpoints to use software breakpoints. Clear the selection to use hardware breakpoints.
Note: Using software breakpoints for debugging, impacts device endurance. Therefore, it is recommended that devices used in this manner are not be used as production parts.

To help you decide which type of breakpoints to use (hardware or software), the following table compares the features of each.

Table 4-2. Hardware vs. Software Breakpoints
FeatureHardware BreakpointsSoftware Breakpoints
Number of breakpointsLimitedUnlimited
Breakpoints written to*Internal Debug RegistersFlash Program Memory
Breakpoints applied to**Program Memory/Data MemoryProgram Memory only
Time to set breakpointsMinimalDependent on oscillator speed, time to program Flash Memory, and page size
Breakpoint skiddingMost devices. See the online Help, Limitations section, for details.No
* Where information about the breakpoint is written in the device.

** What kind of device feature applies to the breakpoint. This is where the breakpoint is set.