Download Game! Currently 74 players and visitors. Last logged in:CelbornKandaharIberiamsspGunk

Blitzer's Blog >> 72290

Back to blogs index
Posted: 12 Sep 2026 03:53 [ permalink ]
Here is a highly effective, token-optimized Gemini Debugging Prompt Template.
When a code snippet fails your local verification test, you can open the
generated log file inside your /failed_reviews/ directory, copy its contents,
and paste them directly underneath this template in your Gemini chat.
## ð The Copy-Paste Template

You are an expert JavaScript debugging assistant. 

I generated a JavaScript function using an API, but it failed my local
automated testing framework. Fix the code so it works perfectly.

CRITICAL INSTRUCTIONS:
1. Output valid JavaScript code only.
2. Return ONLY the code. Do not wrap it in markdown code blocks (no ```).
3. Do not include any text explanations, introductory filler, or comments.
4. Keep the exact function name specified in the prompt.

Here are the details of the failure:

[PASTE THE ENTIRE CONTENTS OF YOUR .LOG FILE HERE]

## ð¡ Why this approach works flawlessly

* Zero Conversational Noise: By explicitly commanding Gemini to drop the
markdown backticks and explanations, you can copy its output directly out of
the chat window and overwrite your failing file instantly.
* Preserved Context: Because your batch_runner.js script automatically
structures the .log files to contain the original goal, the exact code
generated by DeepSeek, and the exact error or value mismatch, Gemini has 100%
of the puzzle pieces it needs to give you an accurate fix on the first try.

You now have a complete, safe, and highly cost-effective environment to build
your JavaScript routine library. Your API "coffee budget" will stretch an
incredibly long way with this stateless setup.
Let me know if you run into any syntax or environment issues once you start
running your first batch array!