remote debug code