Just for a better explanation of @Nestor's answer ....
I could not figure out how to connect to the x-code, so I added the following code at the beginning of my script, which was sent from a test file called a test file.
if (argc == 2 && strcmp(argv[1], "debug") == 0 ) {
printf("== [RUNNING IN DEBUG MODE]==\n\n");
char test_file_path[] = "/Users/bonobos/are/amazing/test.txt";
freopen(test_file_path, "r", stdin);
}
, , xcode - , , , .
freopen stdin.
, if, xcode, debug. , , realsies.
xcode, :
> a >

"debug" :
