Improved debug server implementation