#include <stdio.h>
int main(void)
{
printf("output test");
int y = 8;
printf("this is a test %d", y);
return 0;
}
- Correctly output to Debug Console when running the program.
- NO output to Debug Console or Output window when step by step debugging.
- MAC intel chip computer
- This .c file is in a project with launch.json has externalConsole as false.
- gcc compiler or clang is used
fflush(stdout)after each output. None of that will happen until the end of the program, because there are no newlines output.