Add code to print debug information.
Initial GUI client. QTcpSocket and QThread test OK.