Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
How to see variable contants
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: How to see variable contants (Read 4243 times)
jarome
Single posting newcomer
Posts: 4
How to see variable contants
«
on:
April 07, 2015, 05:58:14 pm »
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
Logged
frithjofh
Regular
Posts: 376
Re: How to see variable contants
«
Reply #1 on:
April 07, 2015, 07:32:43 pm »
do you have a debugger installed?
Logged
architect with some spare time - c::b compiled from last svn - openSuSE leap x86_64 - AMD FX-4100
jarome
Single posting newcomer
Posts: 4
Re: How to see variable contants
«
Reply #2 on:
April 07, 2015, 08:06:21 pm »
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.
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: How to see variable contants
«
Reply #3 on:
April 07, 2015, 08:52:13 pm »
Have you tried to add your variables in Debug -> Debug windows -> Watches?
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
jarome
Single posting newcomer
Posts: 4
Re: How to see variable contants
«
Reply #4 on:
April 07, 2015, 09:05:57 pm »
But then I have to add a watch for every variable, which is a pain. NetBeans and Eclipse show all the variables.
Logged
jarome
Single posting newcomer
Posts: 4
Re: How to see variable contants
«
Reply #5 on:
April 07, 2015, 09:20:56 pm »
Well, I guess I do see the variables for the local function, but for example, I have a pointer and want to see what it points to, and the view only shows a small portion. And I have a crucial struct, but I only see its name, not its members.
«
Last Edit: April 07, 2015, 09:23:18 pm by jarome
»
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: How to see variable contants
«
Reply #6 on:
April 07, 2015, 11:46:16 pm »
This is a limitation unfortunately. Probably it will be fixed in the future.
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
How to see variable contants