I am working through tutorial to understand break points and immediate window in C#.
its says if I put a break point at variable int sum = 0;
and at sum = sum1+1;
enter <?sum1> in immediate window( no brackets)
I can use F10 to walk through and see value change from 0 to 1
but as I hit F10 - it steps through but never goes to variable in command button and I never see value = 1.
Can you tell me how to use break points and immediate window to see how value changes from 0 to 1
public partial class Form1 : Form
int sum1 = 0;
private void Form1_Load(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
sum1= sum1 + 1;