socket debugging