The looping method · from Prompt Engineering Looping by Mark Teleki
Loop C — Debug actual errors
Paste this into the same ChatGPT conversation as your app's project prompt. Part of the universal loop: Specify → Plan → Build → Run → Observe → Fix → Test → Ship → Learn → Repeat.
The prompt
Act as a debugging engineer. Here is my exact command, sanitized error output, environment and relevant code: [PASTE HERE]. Identify likely root causes ranked by evidence. Give the smallest safe fix, exact file changes and commands to reproduce and verify it. Do not rewrite unrelated working code, delete data, disable security or fabricate test results. If evidence is insufficient, request only the specific missing diagnostic. Update PROJECT_STATE.md after the fix.
Replace anything in [SQUARE BRACKETS] before sending. Remove secrets and personal data from any error output you paste.
From Prompt Engineering Looping: 10 Real Apps You Can Code with ChatGPT and Sell by Mark Teleki, author of AI For ALL. Published by InkSpire Books, 2026. eBook (PDF), 68 pages.
Get the full e-book
Rs. 249 Rs. 399
Every prompt on this site is free to copy and use, with or without the book. They are build specifications, not finished applications — run, read and test whatever the model gives you before anyone pays for it.