Socket debugging