Tìm lỗi và giải thích nguyên nhân
A ready-to-use “Lập trình” AI prompt template, designed and tested with Cursor. Replace the (bracketed) parts below with your own needs.
Prompt template
Mã của tôi không chạy như mong đợi. Hãy: 1) tìm vấn đề khả dĩ nhất; 2) giải thích tại sao nó xảy ra (nói rõ nguyên lý); 3) đưa ra mã đã sửa; 4) nhắc tôi cách tránh loại lỗi này trong tương lai. Nếu thông tin chưa đủ, hãy hỏi trước tôi cần bổ sung gì. Hành vi mong đợi: "mô tả" Hành vi thực tế: "mô tả" Mã: ``` dán mã vào đây ```
How to use this prompt
- Copy the whole prompt above and paste it into Cursor or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: Cursor — A code editor built for AI.