add debug option to client example