I have a little problem with the Xcode Debugger. Looks to me the "Step In" function doesn't work like it should. Or just as I expect it to work.
I can step in any method call as long it has no return value:
[myObject DoSomething];
That works find but if the method has a return value, there is no Step In. the Debugger just steps over the method.
double b = [myObject CalculateSomething];
If I do the same with functions instead of methods the debugger always steps into the function call. No matter if it has a return value or not.
Is this a bug? Is it a feature? Is it meant to be that way? I tried it with the current Xcode and the Xcode 4 Beta on a different machines but the debugger refuses to step into methods with return values.
EDIT
Yes I am in debug mode. I get no compiler errors, no warnings. I can easily reproduce this problem any time. A method CalculateSomething -> just do a return 5; and the debugger will not step into it. The value is not zero afterwards, the program works fine.
Only the debugger refuses to step the method or any other method with a return value.