[Qt-creator] "Step Over" at the function-end should do "Step Out"

Michael Sué sue at nf.mpg.de
Wed Nov 5 11:13:20 CET 2008


Hi Creator-Team,

"Step Over" at the function-end should do "Step Out" - a feature suggestion.

When I want to "enter" the function F in a line of code like this:

file main.cpp:
[...]
10: int x=F(add(1),mul(2));
[...]

file F.cpp:
1: int F(int a, int b)
2: {return a+b; }

file add.cpp
1: int add(int i)
2: {return i+2; }

file mul.cpp
1: int mul(int i)
2: {return i*2; }


the following happens:

1) Step Into -> the debugger enters function "add" at line 2; ok!
2) I want to leave function "add" and would do so with "Step Over" in Visual
Studio.
3) I would expect to be back at line 10: int x=F(add(1),mul(2)); and now be
able to "Step Into" function "mul". 
In fact function "mul" is already called, function "F" as well, the whole
original line is stepped over, instead of just the line 2: {return i+2; }
where a pressed the Step Over-shortcut-key.

You can probably say, this behaviour is what gdb does on its own with its
"s" and "n"-commands, but the other way its more comfortable (one key/button
less to handle) and logical for someone coming from WINDOWS.

Best, Michael.




More information about the Qt-creator-old mailing list