My most useful prompt

“Add advanced debug logging and let it guide your efforts to fix this bug.”

It’s gotten me out of a jam with Agent a dozen times or so. You might have to spam the same prompt for a few checkpoints, but eventually Agent will catch what it’s looking for in the logs and fix your problem. Of course, this should be used only if you know it is a fixable problem.

20 Likes

Adding logging is a highly underrated tip! Love it.

2 Likes

It helps me sometimes “implement this function ‘x’ and don’t change any functionality of the current code, respect it”.

2 Likes

Totally. Sometimes the agent gets stuck and until I tell him to add logs for everything he does to see where the error is, he doesn’t fix it.

1 Like

This is great. Debugging and iterative improvements are the biggest challenges I have with Replit.

2 Likes

Nice. Stick it with this one to push it to behave!

Add advanced debug logging and let it guide your efforts to fix this bug.
Remember to follow our chain of thought process when encountering an error.

1. propose a solution.
2. follow up with the fix.
3. But then - critically, a think about it - is this going to really work?
4. verify if it will and then proceed with your chain of thought, stop, take a breath, and then continue.

We cannot have any more errors. Remember this`
2 Likes