This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cant modify locals

Hi, whilst debugging code running on my XC161board i cant seem to modify the locals in the watch window. Does anyone know why this is?

Parents
  • I too have seen strange things happen sometimes, especially when remote target debugging on several targets at the same time. Food for thought:

    - if the variable is a register, than for sure you can change it. You can even change the register itself in the registers window.

    - how would you know if it is a register by the way? Don't be affraid to open the disassembly window and look at the assembly code. It won't hurt, and you will get a better idea if something was optimized away.

    - try again with a clean build:

    - close all IDEs (if you had several open at the same time)

    - make a backup of your project

    - delete all these files: *._ii, *.obj, *.i, *.lst, *.__i, *.ic

    - open the project (only one instance of the IDE)

    - in the compiler options, use the optimization up to 7 (common tail merging) but not above

    - build

    - try to debug again

    Good luck...

Reply
  • I too have seen strange things happen sometimes, especially when remote target debugging on several targets at the same time. Food for thought:

    - if the variable is a register, than for sure you can change it. You can even change the register itself in the registers window.

    - how would you know if it is a register by the way? Don't be affraid to open the disassembly window and look at the assembly code. It won't hurt, and you will get a better idea if something was optimized away.

    - try again with a clean build:

    - close all IDEs (if you had several open at the same time)

    - make a backup of your project

    - delete all these files: *._ii, *.obj, *.i, *.lst, *.__i, *.ic

    - open the project (only one instance of the IDE)

    - in the compiler options, use the optimization up to 7 (common tail merging) but not above

    - build

    - try to debug again

    Good luck...

Children
No data