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

Cannot properly debug c++ code

I'm using keil 4.23 and keil 4.53; microcontroller lpc1766. My problems are:

- i can not add variable to Watch window, if that variable is inside namespace just by clicking on it in the source code and choosing "Add to watch".
In keil 4.23 attempting to do this will cause "Can't add variable to watch"-error, in keil 4.53 it will be added without namespace prefix and would be marked as "can't evaluate". In keil 4.53 it is possible to add variable from Symbols window successfully.

- debugging template code is sometimes very tricky: Sometimes i can not put a breakpoint in it (but can go into it step-by-step), some other times pressing F11 (step into) just brings me in the disassembly window without any "correlation" with c++ code.
Some code works in keil 4.23, some - in keil 4.53 (that's the main reason to have both versions right now).
I saw similar things even with inline functions, when they are in .h files (very rarely, but still).

0