How to use the serial debugger?

This sorted it