How to debug stdin redirection in Xcode4?

I run the program from the command line and accept stdin . Therefore, I expect this use.

 my-program < sample-file 

It works well. The problem is that I cannot specify stdin redirection in Xcode4. It has an execution argument, but it does not support stdin redirection. He seems to be running away from all arguments.

How to debug stdin redirection in Xcode4?

+6
source share
1 answer

I understand that this question is ancient, but in case someone stumbles upon it: there is a workaround for redirecting stdin in this answer: fooobar.com/questions/257859 / ...

0
source

Source: https://habr.com/ru/post/904884/


All Articles