Suppose I have a function:
double Rec(double x, int n) { if(n < 0) { x = 1.0 / x; n = -n; } if (n > 0) { return x*Rec(x, n - 1); } else return 1.0; } int main() { double x = 2.0; for (int index = -3; index <= 3; ++index) cout << x << "in two == " << Rec(x, index) << endl; } How to see in the debugger how it works step by step?
I launch the debugger, it works only in the main() function and does not show what happens in the Rec() function.