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
解決済! 解決策の投稿を見る。
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
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.
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
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
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