So this question got closed then got re-opened, but no answer was given, because there is no good answer for this question. The asker needs some basic debugging help.
Now in the c#tag I see this regularly. I commented a few times suggesting to put a breakpoint and examine the state of variables, but I never once got any reply to that. I'm not sure why, but maybe that's because the asker has no idea what I'm talking about?
So my question is, can we help such people? Do we have a canonical answer, or a help entry that explains a novice how to debug (in Visual Studio, or elsewhere)? Or is it out of scope of Stack Overflow?