Oracle® Solaris Studio 12.4: dbxtool Tutorial

Exit Print View

Updated: October 2014
 
 

Step 7: Determining the Count Value

  1. Open the Customize Breakpoint dialog box for the breakpoint on printField() and set the Count Limit field to infinity.

    image:Customize Breakpoint dialog box

    This setting means that you will never stop at this breakpoint. However, it will still be counting.

  2. Set the Breakpoints window to show more properties, such as counts.

    1. Click the Change Visible Columns button image:Change Visible Columns button at the top right corner of the Breakpoints window.

    2. Select Count Limit, Count, and While In.

    3. Click OK.

      image:Change Visible Columns dialog                                                   box
  3. Run the program again. You will hit the breakpoint inside error(); the one bounded by runProgram().

  4. Look at the count for the breakpoint on printField().

    image:Breakpoints window

    The count is 15.

  5. In the Customize Breakpoint window again, click the drop-down list in the Count Limit column and select Use current Count value to transfer the current count to the count limit, and click OK.

Now when you run the program, you will stop in printField() the last time it is called before the unwanted error message.