I'm finding some problems with data windows in CW debugger. Even if I add variables into my procedure, I only see the same declared before. You can understand better watching the attached image.
I have also found that by declaring local variables in functions as "static" just to debug they will show up. Then you can delete the static declaration after debugging and still let the compiler optimize for final the version. This is if you have enough RAM available for the allocation of the static variables.
Because the compiler did not generate any code for the variable, or even allocate any location for it. So either tell the compiler not to optimize them away (guess: -onu) or make it volatile.
Daniel
Message Edited by CompilerGuru on 2007-11-1512:42 PM