Basic debugclient and fix TCPSocketClient problem