when stepping over printf(), no message printed in the “TERMINAL” below. I think “Hello World from PlatformIO!” should be printed when stepping over.
Is there anyway to solve this problem?
I’m sorry, I can not understand “when”…
I click the step over button when the yellow arrow located at line 5, after click step over button, the yellow arrow moves to line 6, as the following picture shows:
Yeah the message probably does not appear directly because of buffering / flushing. A fflush(stdout); after the printf() may help so that the message directly appears when the fflush(); line is stepped over.
Great, after add fflush(stdout); , the message directly appears.
By the way, if I do not want to add fflush(stdout); , is there anyway to configure in somewhere, such as in platformio.ini, or c_cpp_properties.json located at .vscode folder, etc, to let the message directly appears?