Dear Friends,
I want to monitor the variables value in the debug mode, but the variables was shown "identifier not found" in the expressions dialog box.
I want to know why? Thank you very much.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear Friends,
I want to monitor the variables value in the debug mode, but the variables was shown "identifier not found" in the expressions dialog box.
I want to know why? Thank you very much.
The compiler optimizes the code and stores thes local variables ubTmp and unTmp in the registers for faster operation and releases this memory once it finds the scope is over because these local variables are not accessed anywhere in future within the same function.
So you can't read these variable at the place where you have put the breakpoint.
Dear Friends,
In this case, do you know how to trace the variables or any suggestions of debugging skill will be appreciated. Thanks.
introduce these varialbes in global scope, i.e declare ubTmp and unTmp outside your function. you would be able to see their values once the breakpoint hits.
**Attention** This is a public forum