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.

Variable Viewing (tooltip) in Code Composer Studio

Hi,

When debugging, I like to use the debugging environment to display variable values in a "tool-tip" when using the mouse to hover over the variable's name.  Unfortunately, when hovering in Code Composer Studio, the variable is always shown in "natural" format - usually a dot - because it isn't in the displayable ASCII range.  So, to see what the variable contains I must create a watch on the variable, and then change the display type from natural to hexadecimal or decimal.

What would be nice is it to show me the variable in one or more other formats than Natural - hex is fine, decimal is fine, anything but the dreaded dot.  

My question is: Is there any way to change the environment so the hovering tool-tip defaults to a different display type?  This would save tons of time if this can be done!

 

 

  • Hi Matthew,

     

    This actually depends on which version of CCS you are running.  I have also double checked with a colleague.


    The latest CCS (v5.1) the tooltip should actually show more formats and information.  I take it you are not using 5.1, but can highly recommend making the switch. 

    In CCS v4.2 I don't believe you can change the format.  You can control the format in the variables view, however (please see the below screenshot). 

    In earlier CCS versions - ie 3.3 - there should be an option to change the format.  Unfortunately that version is before my time and I don't have it currently installed to point you exactly to the option.

    I hope this helps!

    Best Regards,
    Lisa

     

  • Lisa,

    That's actually the answer I was looking for.  I'm using 4.2.4 - the screen looks somewhat different than your screenshot, but changing the default format changes the tooltips as well, and now I can see the values of my variables by hovering over the name of the variable!  Great!  I looked all over for that option but must have missed it.

    Now what would be very useful, but wishful thinking (I can do this in ChipView by Chiptools.com, another debugger I use), is highlight portions of code and it will evaluate the result and display the result in a tooltip.  

    For example, z = *( Ptr + i + ( k * 2 ) );, I can highlight the any portion and the debugger will evaluate the result and display it in a tooltip.

    Another wish: If I have a pointer to a structure such as: *MyStructPtr, and I hover over just the MyStructPtr portion, the debugger will show a mini-memory dump of the region in a tooltip (albeit a bit large), but if I increase the hovered portion to include the asterisk by moving the mouse a bit to the left to include the asterisk, the tooltip view changes to a view of the structure itself with the memory content mapped into neat little rows.  (This is how Chipview works as well).

    Thanks again, Lisa, debugging life is about to get easier.

    -Matt

     

  • Hi Matt,

    ok, great.  Glad to hear that helped and cleared things up for you.

    All the best with the debugging.

    Best Regards,
    Lisa