Is it possible to evaluate a variable that has just been assigned ?
For example, I get that error when I try to evaluate “fiset” below
FileInfo[] fiset = di.GetFiles("*.set");
Console.Read(); <--BreakPoint is here
In order for the debugger to be able to evaluate it, I need to “do stuff” with fiset after it has been assigned .
is there a way to avoid this ?
Compile with optimizations off (Debug mode). In Release mode unread variables get optimized away.