clion debug configuration

已回答

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

0
Avatar
Permanently deleted user

 

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??

 

0

请先登录再写评论。