Visual studios losing track of variables when debugging

Hello,

I’ve noticed an odd occurrence when trying to debugg my unity game in visual studios.

I attached to unity after setting a break point and play my game.

While stepping into (F11) my variables displayed constantly change and are lost.
for example, when i just used an internal node in my custom linked list class called tmp.
and I do tmp=tmp.next
that variable disapears from being tracked, making things rather unpleasant trying to trace around.

Does anyone know why this is happening? or even better a solution to the problem?

Below is a video of the issue

Thanks for your Help

This is autos tab. It shows variables from current block {}. It also thinks it knows what vars you want to debug better than you do. Sometimes it’s wrong. Use watches tab and add vars you wish manually.

Ahh thank you,
this is much more helpful!