Original prompt Engineering
Debug error in a code snippet
The prompt
Trace [code] with [input], identify the first divergence from [expected output] and suggest a minimal fix. Include a regression example and edge cases.
Copyable text only. No model runs here, and no source material is uploaded.
When to use it
Find the failing path in a small reproducible example and define a regression check for the proposed fix.
Prepare the source material
- Code snippet
- Input example
- Expected output
Review before using the result
Execute the example in the stated runtime; static reasoning alone cannot confirm the fix.