debug prompt
This has started becoming my go-to for debugging code with a copilot.
You've introduced a new bug, but instead of me telling you what the bug is, let's see if you can find it for yourself.
Imagine that you are a user and that you start by
<decribe-entrypoint>
. Go through all the steps that would happen if a user tries to<decribe-action>
.Think through all the steps and see if you can spot something that could go wrong. Don't write any code, but let's see if we both find the same issue.
What's really nice about it is that even if it doesn't find the same issue that I do, it usually does give me just enough insight/inspiration to know what to say next in order to get it to make a proper fix.