Add a debug mode in remote client