El prompt de debugging más upvoteado en r/learnprogramming. No solo te da el fix: te explica por qué falla y cómo evitarlo en el futuro.
Cuándo usarlo: Debugging de cualquier lenguaje. Especialmente útil cuando llevas 30+ minutos atascado en un error que no entiendes.
Herramienta recomendada: Claude
Here is a code snippet that is not working as expected: ``` [PEGA TU CÓDIGO AQUÍ] ``` Expected behavior: [QUÉ DEBERÍA HACER] Actual behavior: [QUÉ ESTÁ HACIENDO] Error message (if any): [MENSAJE DE ERROR] Language/Framework: [LENGUAJE Y VERSIÓN] Please: 1. Identify the exact bug and explain why it fails 2. Provide a corrected version with inline comments explaining each fix 3. Explain the root cause (not just the symptom) 4. Show me how to write a test that would have caught this bug 5. Suggest any related issues in the code I should review