0

I've searched for questions asking this, I've seen many answers about opening the console that I'm showing on the screenshot, but all I see is the console of the command line debugger lldb, not the application's output.

enter image description here

2
  • stackoverflow.com/questions/1716296/… Commented May 30, 2014 at 5:07
  • I didn't know about the buffer not flushing, I though I was looking to the wrong console. Commented May 30, 2014 at 5:58

1 Answer 1

2

printf is line buffered and requires a \n or flush to force it to print the output.

If you change your code to include the following line after every printf it will work the way you want.

printf("something I want in the console"); // Either of the next two lines should work putchar('\n'); fflush(stdout); 
Sign up to request clarification or add additional context in comments.

1 Comment

please don't mix C and C++

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.