I am debugging an existing C# program. There are of course events and event handlers etc.. My problem is I don't know where and when in the program this specific variable named X for the purpose of the question is being updated.
When we worked with emulators and microprocessors, I could see what code accesses a specific address in the memory but I am not sure if I could see the same thing in C# debugger.
Some options:
Right click on the variable and select "Find All References"...
Do a global solution search-all for the text "x =" and "x=" to find everywhere something is trying to set it.