Better Code with AI: A Guide to Modern Testing and Debugging