debug socket mode