Version: 2.1.5 (using KDE 3.1.0) Installed from: Mandrake Linux Cooker i586 - Cooker Compiler: gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) OS: Linux (i686) release 2.4.21pre4-10mdk when i single step in the following program the program never receives the input ( scanf ) and never ends. steps to reproduce : 1/set a breakpoint on main 2/try to single step until the end of the program expected result : go beyond scanf #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { char a[10]; printf("Hello, world!\n"); scanf("%s",a); printf("Hello, world!\n"); return EXIT_SUCCESS; }
scanf is waiting for input - To enter input you need to use the "separate terminal I/O" option. See the debugger options.