Author Topic: Debugging: display value of variable on mouseover?  (Read 11394 times)

imnotbncre8ive

  • Guest
Debugging: display value of variable on mouseover?
« on: February 04, 2009, 10:25:59 am »
I'm new to Code::Blocks and using IDEs in Linux in general. I have been using Visual Studios until now for C++ dev. I was wondering whether Code::Blocks has anything analogous to Autos in VisualStudio? Its a window that automatically displays the variables in scope for whatever function you're currently debugging in, and it shows updates to variable values as you step through the code. Adding watches to every single variable seems like an unnecessary hassle. Also, is there an option to display the value of a variable by simply moving your mouse over it during debugging? Mousing over during debugging and getting "int i" isn't very helpful. Thanks for your time.

Offline Alexis

  • Multiple posting newcomer
  • *
  • Posts: 62
Re: Debugging: display value of variable on mouseover?
« Reply #1 on: February 04, 2009, 10:37:57 am »
Settings Menu > Compiler and Debugger
Then click Debugger settings icon on the left.
Enable Evaluate expression under cursor and you're done.

By the way, it would be nice if:
  • This option could be set by default
  • The tooltip displaying variable value could appear faster