Bug 511142 - Program ignores console input during debugging
Summary: Program ignores console input during debugging
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 9.3.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-26 16:49 EST by Kamil Kaznov CLA
Modified: 2020-09-04 15:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Kaznov CLA 2017-01-26 16:49:25 EST
During debugging Eclipse doesn't "see" INPUT from built-in console, just ignores it. Simple example:

#include <iostream>
using namespace std;

int main() {
 int a;
 cin >> a;
 cout << a << endl;
 cin >> a;
 cout << a << endl;
 return 0;
}

works perfectly fine when just run, but when I try to debug it, input contains always only one number (usually around 40), no matter what i will write to console. So program executes, first variable is set to ~40 and all next to zeros. Output works fine, values are written to console, only input doesn't work.
Comment 1 Marc Khouzam CLA 2017-01-27 08:47:01 EST
I'm assuming this is not really on EDC?
Retargetting to general Debug.