User forums > Help

How to see variable contants

(1/2) > >>

jarome:
I finally found an IDE that works properly with my C program   :). It compiles and runs, but I can't figure out how to see the values of my variables. I did add the -g option. I am running in OpenSUSE 13.2.

Maybe I am blind?

I also get a terminal that pops up saying:
warning: GDB: Failed to set controlling terminal: Operation not permitted

frithjofh:
do you have a debugger installed?

jarome:
Oh yes. gdb is there. And once I checked the right box, I can see the variable values when I hover. But I would like a pane that shows all of the variables and their values.

Also, I am getting the ASCII values rather than the characters for many of them.

oBFusCATed:
Have you tried to add your variables in Debug -> Debug windows -> Watches?

jarome:
But then I have to add a watch for every variable, which is a pain. NetBeans and Eclipse show all the variables.

Navigation

[0] Message Index

[#] Next page

Go to full version