This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS6.1 - DEBUG-- VARIABLES --- (1) How to display Global Variable (2) how to (consistently) change a local variable.

CCS6.1 - DEBUG-- VARIABLES ---      please see the screen shot, below.   Sorry, its pretty small.

The software is simple, it is from  TI's  SLAA393c   'advanced debugging examples'   Example 1.   Imported C text into CCS6.1.

Of course, DEBUG was stopped, then single-stepped ......

(1) How to display Global Variable ??

I wish to see        volatile uint16_t wLoopCounter = 0;         in the list,  and eventually change it, etc.     but the  'ADD GLOBAL VARIABLES' button is greyed out.    (5th from left, starting at 'Show Type Names')   I can see this global variable if I hover over it in the   C-code --  and even change it -->   but this is awkward as it of course disappears when I move the mouse away. 

So.....    How to display a Global Variable in debug, in the list, please?

(2) how to (consistently) change a local variable.       (I think not too important question !!!)

The point here is the help documentation (left screen / right side) doesn't accurately say what to do. I determined via trial / error:

The loop variable               volatile uint16_t count = 0;              is seen in the list.      It seems the only way I could change  COUNT  is:

(A) to make the list view 'COLUMNS' ...  double click VALUE ....   edit that value

(B) in the C-code...    hover over the variable name    COUNT   box comes up  ...    click/edit the value in the box.

  • At the ‘Variables’ tab you see the local variables currently active in the function, you can’t add here other variables.
    At the ‘Expressions’ tab you can manually add any variable and they will display their value as long they are in the scope of your program (not Local variables from another Function).

    In both Views (tab’s) you can change the Value when the program has stopped (Suspend).