Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327622 - Doesn't work when using 'Run' to run application which has program arguments configured to input from file.
Summary: Doesn't work when using 'Run' to run application which has program arguments ...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 7.0.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: 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: 2010-10-12 22:17 EDT by Pavel Krupets CLA
Modified: 2020-09-04 15:25 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.