News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

can not show variable's value when debugging

Started by hongxing, October 20, 2005, 03:55:34 AM

Previous topic - Next topic

hongxing

my environment is SuSE Linux Enterprise 9, my app type is a simplist c console app as following:
int main()
{
  int i = 1234;
  i++; // <--- run to here
  return 0;
}

when debugging to line 4, I add i to watch window, but can not see its value.

why?

hongxing

btw:
I use cvs-head version C::B. bufore debugging, I checked the targets' option:
  generate debug info[-g]
and checked the gdb plugin's option:
  evaluate expression under cursor.

when debugging, I put cursor under variable i, but only "i = " displayed, none of its value

thanks!

mandrav

One thing to check is that you shouldn't have optimizations turned on.
Also, do you use the ansi or unicode wxWidgets version? I tried it with the ansi version and it works as expected.
Be patient!
This bug will be fixed soon...

hongxing

I have turned optimize options off.

I use the Unicode version of C::B.

hongxing

just soon, I recompiled C::B to ansi version.
and it works.

but my project need to use Chinese/Korean characters, I must use unicode version of C::B.
can anyone solve this bug in unicode version of C::B?

rickg22

#5
Hmmm I'm afraid this bug is new. Please report it at the sourceforge project page so we don't forget about it. In the meantime, here's a question: Is the variable shown via "watches"?

hongxing