When using AI tools such as ChatGPT to help debug code, which prompting approach is generally most effective?
Options:
-
A. Directly paste the complete code and ask: What is wrong with this code?
-
B. Provide error messages, relevant code snippets, and a comparison between expected and actual behavior.
-
C. Only describe the problem symptoms in natural language, without providing any code.
-
D. Ask the AI to directly rewrite the entire functional module from scratch.