I'm debugging using a pointer pointing to double
variables to modify their values. And I want to print the variable name pointed by the pointer every time it changes the variable it points to. This could be by coding for each variable but there's dozens of them and it will take a lot of time. I found this way here at cplusplus.com (the second replies):
#define SHOW(a) std::cout << #a << ": " << (a) << std::endl
But it only prints the pointer's name not the variable it points to.
I use the keyboard to modify the values constantly. It's impossible to use the debugger.