What Do I Do If Nothing Is Output on the Console During Debugging of printf Information in C Language?
Symptom
There is a possibility that no information is output on the console during debugging of printf information in C language.
Solution
This is an internal bug of the GDB. You can use setbuf or setvbuf to disable buffer, or invoke fflush to output the buffer in a timely manner after printf is executed.
Parent topic: FAQs