在使用Xcode 5进行调试时,如何查看输出控制台(即stdout)?
我搜索了一些问题,看到了很多关于打开屏幕截图上显示的控制台的答案,但我看到的只是命令行调试器lldb的控制台,而不是应用程序的输出在使用Xcode 5进行调试时,如何查看输出控制台(即stdout)?,c,xcode,debugging,xcode5,stdout,C,Xcode,Debugging,Xcode5,Stdout,我搜索了一些问题,看到了很多关于打开屏幕截图上显示的控制台的答案,但我看到的只是命令行调试器lldb的控制台,而不是应用程序的输出 printf是行缓冲的,需要使用\n或flush强制打印输出 如果您将代码更改为在每个printf之后包含以下行,它将按照您想要的方式工作 printf("something I want in the console"); // Either of the next two lines should work putchar('\n'); fflush(stdo
printf
是行缓冲的,需要使用\n
或flush强制打印输出
如果您将代码更改为在每个printf
之后包含以下行,它将按照您想要的方式工作
printf("something I want in the console");
// Either of the next two lines should work
putchar('\n');
fflush(stdout);
我不知道缓冲器不是冲水,我想我是在找错人。请不要混合C和C++。