I use Visual Studio 2017 for C++ projects. I can set a data breakpoint to break when a value of the variable is changed. Is it possible to set a breakpoint when a variable is just read, for example:
int x = 5;
//somewhere in the code
int y = x; //break when x is read
?
I would like to break every time the variable x
is read.