When I enable watch on a static variable, it shows the error, "<error(s)_during_the_evaluation>". What do I do?

To enable Watch on the static variables:

  1. Click on the static variable name with error in the Expressions view's Name column.

    The editing mode is enabled for the selected variable.

  2. 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.