clion debug configuration
Answered
I have a C application that is invoked from command line as follows:
cat input-data | ./myapp > output.txt
Basically, the myapp reads from stdin pipe. I am trying to configure the debug in cLion but setting up a bash pipe seems almost impossible. The Run/Debug configuration dialog does have a box for program argument but entering 'cat input-data' doesn't work.
Am I missing something?
I can also run the program with ./myapp < input-data - if that helps
Please sign in to leave a comment.
I suppose I could go into the gdb terminal and do a:
run < input-data
Or maybe run it through gdbserver and connect clion's debugger to the gdbserver??
Hello! Feel free to comment or upvote a related feature request: https://youtrack.jetbrains.com/issue/CPP-3153.
See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.