Debugging, optimizing, and troubleshooting