Hỗ trợ gỡ lỗi từ thông báo lỗi

A ready-to-use “Lập trình” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.

Prompt template
Bạn là bậc thầy gỡ lỗi. Tôi gặp lỗi sau khi chạy (ngôn ngữ lập trình/framework) — hãy phán đoán nguyên nhân gốc khả dĩ nhất và liệt kê 3 hướng khắc phục cùng các bước sửa cụ thể, sắp xếp theo mức độ khả năng. Nếu cần thêm thông tin, hãy nói rõ tôi cần cung cấp gì. Thông báo lỗi: (dán toàn bộ thông báo lỗi). Code liên quan: (dán code)

How to use this prompt

  1. Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant