User forums > Help

can not show variable's value when debugging

(1/2) > >>

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.

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?

Navigation

[0] Message Index

[#] Next page

Go to full version