Hello,
Variables are not listed in locals control or evaluated for functions which contain yield return or yield break.
Example: In below Script variables are not evaluated or shown in locals control.
private List DoSearch(string text)
{
int i = 1;
i++;
int t = i++;
yield return null;
}
Same code without yield, variables will be evaluated.
private List DoSearch(string text)
{
int i = 1;
i++;
int t = i++;
return null;
}
The issue occurs in Alternet Studio v6.0 and v6.1
Thank you for reporting this. Evaluation of local variables in "yield" context needs a special support
in the debugger. This is because such locals are not really variables, but are fields of compiler-generated classes
used to support "yield". So we need a special support to evaluate such objects. We lodged a ticket for this task, it is scheduled for the next release (7.0).
Hello,
any news on yield support?
After five years later and Alternet v10, it seems that the debugger still does not support yield variables.