Instruction: Explain how you would create a prompt that aids in identifying and suggesting fixes for bugs in code written in a particular programming language.
Context: This question tests the candidate's understanding of AI applications in software development, particularly in automated debugging processes.
Official answer available
Preview the opening of the answer, then unlock the full walkthrough.
I would tailor the prompt to the language's idioms and debugging surface. Example:
You are a senior Python debugging assistant. Read the code, identify the likely bug, explain why it fails in Python-specific terms, propose the smallest safe fix,...