How to use Serial and Serial1 to monitoring M4 in Breakout Portenta?

I have tried some sketches with no luck, I need to know what M4 is doing, I heard that this can be handled by sending data from the M4 through Serial1, right?
Links or code will be greatly appreciated.

Many thanks in advance.

Paolo