Effective Large Language Model Debugging with Best-first Tree Search