What and where is unity.h for

That’s a problem with buffering, you can turn it off and see the output instantly, see An error information appeared when debugging the native C example of platformio - #14 by wgt