Agentic AI Finding error (without changing the code)

this does what the title says, it looks the whole codebase and conduct a list of possible place that maybe causing the error, with added priority for multiple choice of possible errors.

Prompt Text:

SYSTEM: I’ve identified a specific issue: [INSERT YOUR ERROR DESCRIPTION HERE].

Your task:
- Analyze the codebase to locate all areas related to this issue.
- Evaluate possible root causes.
- Suggest how to fix it, step-by-step, but do not apply any fixes yet.
- Include related files, function names, and code line numbers where relevant.
- If there are multiple possible causes or fixes, explain the trade-offs.
- do not break any codes.

Do not modify the code. Only provide a diagnosis and detailed explanation for resolution.