User forums > Using Code::Blocks
Const variables mouse over
(1/1)
zdena:
Hello,
if I define a macro in the code I can see the value in a tooltip (attachment 1).
Can I also see the value if I use a const variable instead of #define?
I tried to set "Evaluate expression under cursor" in debugger settings, but it works only during debugging.
--- Code: ---#include <iostream>
using namespace std;
#define VARIABLE_DEFINE 222
const int VARIABLE_CONST = 222;
int test;
int main()
{
cout << "Hello world!" << endl;
test = VARIABLE_DEFINE;
test = VARIABLE_CONST;
return 0;
}
--- End code ---
BlueHazzard:
I do not think that the cc plugin (the plugin providing tool tips) can do this at the moment...
zdena:
@BlueHazzard: Thank you.
Navigation
[0] Message Index
Go to full version