No trouble viewing self/local variables, but can't view global variables in the debugging window while running C++ programs.
For example:
int global = 0;
void func(int arg1, int arg2) {
page_table_base_register = nullptr; // defined globally elsewhere
int local = arg1;
}
I'd like to see the status of page_table_base_register
, which is defined globally elsewhere, as well as the status of global
even though it is not used in the func
. I can only inspect the arguments of the function and local variable in the Xcode debugging stack window. The Linked picture shows the Xcode debugging stack window that I'm referring to.
Is there any way to do this?