אוהב אותך22
New member
דיבוג בeclipse וanjuta
hi, i am new with ubuntu and anjuta and have a little experience with programming java at eclipse. i started to learn C, and i have some questions: i have a simple C program: שלום, אני מתכנת מתחיל בc עם ניסיון בתכנות java ב eclipse. יש לי כמה שאלות לגבי התכנות ב-c. קוד לדוגמא: **************************** w #include <stdio.h> int main(){ int i=0; while(i<5){ i++; printf("hello\n"); } return 0; } ***************************** 1) אני רוצה לכתוב את הקוד ב eclipse ע"י הפעולות הבאות: file->new->manage make C project ->"ex1"->next->finish ex1 project->new->source file->and the name ex1.c->finish כתבתי את הקוד ושמרתי, ועכשיו כשאני רוצה לדבג את הקוד אני נכנס ל Run-> debug ואז מופיעה לי הודעת שגיאה:Failed to set program arguments , environment or working directory בdetails מופיעה ההודעה Unable to set working directory: mi_cmd_env_cd: Usage DIRECTORY מה הבעיה? 2) In anjuta i want to debug my program ex1.c i press Debug->run target -> i have two sections "Debugger target" and "command line parameters". what should i put in this sections ? thanks and sorry for the long details.
hi, i am new with ubuntu and anjuta and have a little experience with programming java at eclipse. i started to learn C, and i have some questions: i have a simple C program: שלום, אני מתכנת מתחיל בc עם ניסיון בתכנות java ב eclipse. יש לי כמה שאלות לגבי התכנות ב-c. קוד לדוגמא: **************************** w #include <stdio.h> int main(){ int i=0; while(i<5){ i++; printf("hello\n"); } return 0; } ***************************** 1) אני רוצה לכתוב את הקוד ב eclipse ע"י הפעולות הבאות: file->new->manage make C project ->"ex1"->next->finish ex1 project->new->source file->and the name ex1.c->finish כתבתי את הקוד ושמרתי, ועכשיו כשאני רוצה לדבג את הקוד אני נכנס ל Run-> debug ואז מופיעה לי הודעת שגיאה:Failed to set program arguments , environment or working directory בdetails מופיעה ההודעה Unable to set working directory: mi_cmd_env_cd: Usage DIRECTORY מה הבעיה? 2) In anjuta i want to debug my program ex1.c i press Debug->run target -> i have two sections "Debugger target" and "command line parameters". what should i put in this sections ? thanks and sorry for the long details.