Code::Blocks Forums
User forums => Help => Topic started by: GNEPO on April 14, 2016, 10:36:41 am
-
Consider the following code, but not the question about code.
#include <iostream>
void CallC()
{
// put a break point here and then click debug start
std::cout << "C called" << std::endl;
}
void CallB()
{
std::cout << "B called" << std::endl;
CallC();
}
void CallA()
{
CallB();
CallC();
}
int main()
{
CallA();
return 0;
}
I wonder what's difference they are, i have try both of them, but nothing difference happens. But i know here have difference between them. Thanks for your answer :)
-
Jump: jumps to the function,
Switch: switches to the stack frame that is allocated for the function.
-
Jump to function just moves the cursor to the file:line for that stack frame.
Switch to frame tells the debugger that this frame is the active frame and so all watches are evaluated for this frame.
-
Thanks :) well done.