'Static' local variables do not show-up automatically in the 'Locals' window

Question: When using the debugger in PSoC Designer, local variables that are declared 'static' should show-up automatically in the 'Locals' window. But they do not. How to fix it?

 

Answer:

You can add your variable to the normal Watch window. Watch Variables can be set by right clicking a variable in the source file and selecting Add Watch.