Document socket debuging wrapper