Tooltips format

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tooltips format

Jump to solution
571 Views
Cdn_aye
Senior Contributor I

Is there anyway to set the format of the data variables displayed in tootips (ie, when you hover over a value that is a variable but placed on the stack, if that is even what it is called)? For variables that are on the stack, hovering over the variable shows the value in the tooltip, but that is set to automatic right now, and I get some foreign character. I just want to see the hex value. I have searched all through the doc set forums and don't see how to do this. It was easy under cw6.3, rt click, pick the format.

 

Thank you

Labels (1)
0 Kudos
1 Solution
357 Views
BlackNight
NXP Employee
NXP Employee

Hi Robert,

I'm confused about you saying that you declare the variables as static. I think you do not need to do this, as you can view any variables (static or not) in the Variables view. So you do not need to modify your code.

The following posts are more about static locals and global variables:

http://mcuoneclipse.wordpress.com/2012/07/04/debugging-global-variables/

http://mcuoneclipse.wordpress.com/2012/07/24/watching-static-variables/

Again: parameters and local variables should be shown automatically.

Otherwise it might be helpful to post a screenshot of what you see.

Hope this helps,

Erich

View solution in original post

0 Kudos
4 Replies
357 Views
BlackNight
NXP Employee
NXP Employee

You can set the view format of variables in the 'Variables' view. But as far as I know, it is not possible to change or influence the format of the tooltip variables in the debug/source view.

The tooltips are using the same format as the 'preview' pane in the Variables view as far as I can tell.

You might have a look at https://mcuoneclipse.wordpress.com/2012/08/08/eclipse-debugging-with-strings/ and  http://mcuoneclipse.wordpress.com/2012/08/11/eclipse-debugging-with-strings-part-2/ which is about tooltips and strings (and the preview pane).

I think this is an area where Eclipse should improve. Eclipse 3.7 is little bit better, does does not offer (yet) what you are asking. Unless I missed something.

357 Views
Cdn_aye
Senior Contributor I

Hi Erich

These were also very good articles.

In the classic toolset (cw6.3) for example, the tooltips worked correctly so for now I will just declare the variable static and try to remember to remove it again when the debugging is done.

Thank you

Robert

0 Kudos
358 Views
BlackNight
NXP Employee
NXP Employee

Hi Robert,

I'm confused about you saying that you declare the variables as static. I think you do not need to do this, as you can view any variables (static or not) in the Variables view. So you do not need to modify your code.

The following posts are more about static locals and global variables:

http://mcuoneclipse.wordpress.com/2012/07/04/debugging-global-variables/

http://mcuoneclipse.wordpress.com/2012/07/24/watching-static-variables/

Again: parameters and local variables should be shown automatically.

Otherwise it might be helpful to post a screenshot of what you see.

Hope this helps,

Erich

0 Kudos
357 Views
Cdn_aye
Senior Contributor I

Hi Erich

You are right, I was thinking of the scope of the tool tips display. If the variable is on the stack then the tool tip doesn't display the variable after it goes out of scope, I think the variables screen still shows the last value of the variable.

Thank you again.

Robert