[Anjuta-list] Debug problem on Anjuta
- From: "Richard Jiang" <jiangyi178 rogers com>
- To: <anjuta-list lists sourceforge net>
- Subject: [Anjuta-list] Debug problem on Anjuta
- Date: Tue Apr 15 21:55:03 2003
Hi, I just started using Anjuta with gtk. I run into a simple debugging
problem:in a simple program, the debugger cannot see local variables
except vars of a char[ ] type.
See below the sample, in each function, the variables i, k are not in
Locals window, and if I "Inspect" their values, say k, I get error:
"No symbol "k" in current context."
I'm running RH8. Couldn't figure out why.
Thanks a lot for any help!
Richard
==============================================
/* Created by Anjuta version 1.0.2 */
#include <iostream.h>
int main3()
{
int i;
int k;
i =9;
k=45;
printf("fsgfdss%d", i);
printf("fsgfdss%d", k);
char buf[123];
strcpy(buf, "SSSSSSS");
printf(buf);
return 2;
}
int main2()
{
int i;
int k;
i =9;
k=45;
printf("fsgfdss%d", i);
printf("fsgfdss%d", k);
char buf[123];
strcpy(buf, "SSSSSSS");
printf(buf);
int ret = main3();
return 2;
}
int main()
{
int i;
int k;
i =9;
k=45;
cout << "Hello world\n";
int ret = main2();
printf("k= %d", k);
printf("ret= %d", ret);
return (0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]