Hi,
Should it be possible to display sequences returned from methods in the debugger ?
For example with this code
namespace ListConsoleApplication;
uses
System.Collections.Generic,
System.Linq;
type
Employee = public class
public
property Id:Integer;
end;
Program = class
public
class method Main(args: array of String): Int32;
begin
var objs := ProduceList;
if(assigned(objs))then
begin
end;
end;
class method ProduceList:sequence of Employee;
begin
var items := new List<Employee>;
items.Add(new Employee(Id:=1));
items.Add(new Employee(Id:=2));
items.Add(new Employee(Id:=3));
exit items;
end;
end;
If I set a breakpoint on the line after the ProduceList call, it doesnt show the rows assigned in locals.
well, a sequence (a) could be infinitely long and (b) might. it be safe to re-execute without side effects (think database query), so the debugged cant just show it. calling ToList in the sequence should evaluate ok…
I think my machine would have hung before i even got the chance to expand. It should be up to the person debugging.
I was in the middle of debugging some database calls and I just wanted to see what was returned. To do that I have to stop the debugging session change the code and repeat.