previous | start | next

## The Debugger

- Many debuggers also have "step over" and "step into" commands.
- The "step over" command advances to the next program line:
- Example: If the current line is

  >     r = future_value(balance, p n);
  >     cout << setw(10) << r;

  "step over" advances the program to

  >     r = future_value(balance, p n);
  >     cout << setw(10) << r;

- The "step into" command advances into function calls.
- Example: if the current line is

  >     r = future_value(balance, p n);
  >     cout << setw(10) << r;

  "step into" advances the program to

  >     double future_value(double initial_balance,
  >        double p, int n)
  >     {
  >        double b = initial_balance * pow((1 + p /100), n);
  >        return b;
  >     }

previous | start | next