debug server and client