Live variable view using openOCD and VScode
Change the IDE to something with better debugger - for example eclipse with set of plugins or use preconfigured IDE like atollic studio. 

The you can use tracing - to see live changes of the variable or set the stimuling triggers like variable read or write.