Debugging applications in the cloud