Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327622

Summary: Doesn't work when using 'Run' to run application which has program arguments configured to input from file.
Product: [Tools] CDT Reporter: Pavel Krupets <pkrupets>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech, pkrupets, yevshif
Version: 7.0.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Pavel Krupets CLA 2010-10-12 22:17:39 EDT
Build Identifier: M20100909-0800

Add the following line into 'Run Configurations'/Arguments/'Program Arguments'

< data.txt

Program might be something like:

int main() {
    size_t n;
    std::cin >> n;    
    return 0;
}

Then put number into data.txt.

If you debug it works. File is read and number is fed into cin. If you run it (no debug) it won't work. You have to type stuff into console.

Should similar work in both ways.

Reproducible: Always

Steps to Reproduce:
1. Configure Program Arguments to read from file (< data.txt)
2. Run application
3. No file is read
Comment 1 Doug Schaefer CLA 2011-01-04 14:41:11 EST
Launching is under cdt-debug.