Why don't the windows of expressions watch C++ variable when PC locate in asm or c-files.
But simple variables from C files are watched in the windows of expressions?
ERROR: Unknown variable or symbol show in the field of C++ variable
Hi Mr. Paymurzov,
I have looked at this issue and was able to duplicate it. It appears to be a bug. I did find that if you use the scope resolution operator, ::, putting it before the variable name in the Expression window, the variable will be resolved correctly. For example if the global variable name in the C++ file is myVar then in the Expression window enter it in as ::myVar.
Please let me know if you have any other questions.
I use as
And the problem appear
Are you saying that even using those specific names, i.e. the namespace::object_of_class, etc., they still do not resolve in the Expressions window? If that is the case I will investigate further.
Yes, I am saying that even using those specific names, i.e. the namespace::object_of_class, etc., they still do not resolve in the Expressions window.
I am claiming that if I use namespace::class_object_of_C++ that the variable with this name don't watch if the program is now executing in asm or C part of the code.
Thanks for the additional info. I was able to duplicate this as well.
I did find that if you are looking for the value of the expression namespace::object_of_class then by adding :: to the front of the expression it will resolve. So if you try ::namespace::object_of_class then the expression window will show the correct value. We have a bug report for this. I appreciate you letting us know about it.
Retrieving data ...