To enable
Watch
on the
static variables:
- Click on the static variable name with error in the
Expressions
view's
Name
column.
The editing mode is enabled for the selected variable.
- Edit the variable name to this format,
""FileName"::variableName".
For example:
- For
static_global variable in the
Application.c file, enter the expression,
""static_global"::Application.c"
- For
static_local variable in the
Application.c file, enter the expression,
"&"static_global"::Application.c"
The watch is now enabled for the edited static variable.