The issue comes from Eclipse buffering the console inputs.
One way to fix it is to force Eclipse to debug using a Windows/DOS native console.
The procedure is described in details here, but in brief :
The procedure is described in details here, but in brief :
- Create your Hello World C++ command line project, from the Eclipse menu File > New > C++ Project
- In your project folder, create a ".gdbinit" text file. It will contain your gdb debugger configuration
- Edit ".gdbinit", and add the following line (without quotes) : "set new-console on"
- In Eclipse, go to menu Run > "Debug Configurations", and select your application name in the left pane
- In the "debugger" tab, ensure the "GDB command file" now points to your « .gdbinit » file. Else, input the path to your ".gdbinit" configuration file
- Click « Apply » and « Debug ». You’re done ! A native DOS command line should be launched.
0 comments:
Post a Comment