| 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-debug | Assignee: | 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: | |||
Launching is under cdt-debug. |
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