I'm beginner for C language and for Eclipse IDE . I've downloaded and installed Eclipse ide for c/c++ developers ie Mars 2.0. I've created a new project and selected the appropriate compiler and typed the following code:
#include <stdio.h>
int main()
{
printf("Hello, World! \n");
return 0;
}
After, when click build project it creates .exe file for me and when I click on Debug it successfully Debugs but shutdowns automatically within a fraction of a second .
From what you've told us, that would be correct. If you want to step through the code, you have to set a breakpoint. You should be able to double-click in the margin on the "printf" line to set a breakpoint there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.