SWO ITM printf() output using ST-LINK utility while debugging
May be this can help a bit: ((https://github.com/rokath/trice |https://github.com/rokath/trice ))
If you try the RTTD variant, on a debug step over a TRICE macro you see immediately the output.