Hello, Suppose I have a method in a class, with a nested procedure along these lines:
procedure TMyClass.DoSomething(CodePos: TCodePos);
procedure DoAnotherThing;
var
A: Integer;
B: Integer;
begin
...
end;
begin
...
DoAnotherThing;
...
end;
When I am debugging using Xcode, I enter the main code for the
DoSomething method, and I am interested especially in the value of the parameter
CodePos, so I keep an eye on it in Xcode's variable list. The problem occurs when the nested procedure
DoAnotherThing is entered. At that point, Xcode's list of variables is replaced by those variables only the immediate scope of
DoAnotherThing, in this case
A and
B.
This is a dramatically simplified example. The code I am trying to debug, the
MethodJumping.pas is proving to be much more tricky because the
Codetools code has some large methods with large, nested procedures, and it is really like trying to debug a 1000 line app with global variables!
Does anyone know how I can make Xcode hang onto the display of the outer method's variables when the nested procedure is entered?
I've tried to search for a solution but the combination of Xcode and Pascal as Google search terms give no useful results that I can find.
Thanks,
Carl