Bug 55717

Summary: problem wint integrated debugger
Product: [Applications] kdevelop Reporter: mike <penne296>
Component: CPP DebuggerAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description mike 2003-03-09 00:22:11 UTC
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;
}
Comment 1 John Birch 2003-05-19 22:35:43 UTC
scanf is waiting for input - To enter input you need to use the "separate terminal I/O" option. See 
the debugger options.