I/O redirection

已回答

Hi,

I updated my CLion to the 2019.3 version, and I thought it was announced that it would support I/O redirection when using the debugger. I tried to run a simple program where I redirected a file to cin, but it didn't work. I did it by going to Run > Edit Configurations and changed the program arguments to "< name.txt" where name.txt is the file I'm trying to redirect from. I then tried stepping through the code using the debugger, and when I came to cin >> name, the program just stopped, and was expecting me to type something in, so it didn't really get that I wanted to redirect input.

0

Hello!

Input redirection (CPP-3153) is not supported yet, and was announced as a part of the 2020.1 Roadmap: https://blog.jetbrains.com/clion/2019/12/clion-2020-1-roadmap/.

0

请先登录再写评论。