ການຊອກຫາຄອມພິວເຕີທີ່ລາຄາສູງທີ່ສຸດໃນວິສະວະກໍາແວແມ່ນບໍ່ມີແຮມເລກຸນສົມບູນຫຼືການອອກແບບອຸປະກອນ. ຂໍຂອບໃຈ , ແລະ ຊື່ຫຍໍ້ຂອງ : 2 AM console.log("here") print("check 1") System.out.println("please work") ພວກເຮົາເອີ້ນວ່າມັນ "Shotgun Debugging." ທ່ານໄດ້ຂຽນການປິ່ນປົວຂອງຄໍາແນະນໍາ logging random ແລະການປິ່ນປົວລະຫັດໃນ codebase, ມີຄວາມສົນໃຈວ່າຫນຶ່ງໃນພວກເຂົາໄດ້ປິ່ນປົວກັບຈຸດປະສົງ. ມັນບໍ່ໄດ້ດີ. ມັນບໍ່ໄດ້ດີ. ແລະຂໍຂອບໃຈ, ມັນບໍ່ແມ່ນມືອາຊີບ. ໃນວິສະວະກໍາອື່ນໆໃດໆ - ອຸດສາຫະກໍາ, ໄຟຟ້າ, ອຸດສາຫະກໍາ - ການທົດສອບຄວາມຜິດພາດແມ່ນການທົດສອບວິທະຍາສາດທີ່ເຂັ້ມແຂງ. ໃນອຸປະກອນການ, ພວກເຮົາມີຄວາມສົນໃຈຫຼາຍກ່ວາສຸຂະພາບແລະຄວາມຮູ້ສຶກຂອງມະນຸດ. ພວກເຮົາມີຄວາມຮູ້ສຶກຫຼາຍກ່ວາ Sherlock Holmes, ແລະຫຼາຍກ່ວາຜູ້ຊ່ຽວຊານທີ່ມີຄວາມສົນໃຈທີ່ທົດສອບການທົດສອບຄວາມຮ້ອນໂດຍຕັດສາຍ random. ບັນຫາແມ່ນວ່າ bugs ແມ່ນ hard. ບັນຫາແມ່ນວ່າພວກເຮົາມີ . methodology is weak ພວກເຮົາມີຄວາມຮູ້ສຶກວ່າ AI (ChatGPT, Claude, Copilot) ເປັນຜູ້ຜະລິດລະຫັດທີ່ຕ້ອງການທີ່ຈະ "ລັກສະນະທີ່ເຮັດວຽກ" ແຕ່ມັນແມ່ນການຂົນສົ່ງຂອງຄວາມສາມາດຂອງຕົນ. ຄວາມພະຍາຍາມທີ່ແທ້ຈິງຂອງມາດຕະຖານຂະຫນາດໃຫຍ່ (LLMs) ແມ່ນໃນຄວາມສາມາດຂອງພວກເຂົາເພື່ອປະຕິບັດການທົດສອບສະພາບແວດລ້ອມແລະການຢັ້ງຢືນມາດຕະຖານໃນຂະຫນາດທີ່ບໍ່ສາມາດຕອບສະຫນັບສະຫນູນຂອງມະນຸດ. You don’t need AI to write more code. You need AI to act as a . Senior Debugging Forensic Specialist ລະຫັດ QR ລະຫັດ QR ໃນເວລາທີ່ຜູ້ອອກແບບ junior ໄດ້ຊອກຫາຄວາມຜິດພາດ, ພວກເຂົາເຈົ້າໄດ້ຂຽນ: ໃນເວລາທີ່ຜູ້ພັດທະນາ senior ໄດ້ຊອກຫາຄວາມຜິດພາດ, ພວກເຮົາມີຄວາມຕ້ອງການ: "ຫຼັງຈາກນັ້ນ, ຂ້າພະເຈົ້າສາມາດດໍາເນີນການຫຼັງຈາກນັ້ນ? "ລັກສະນະຂອງລະບົບແມ່ນໃນສະຖານທີ່ທີ່ມັນເປັນປະໂຫຍດທີ່ສາມາດເຮັດໄດ້?" ວິທະຍາໄລຂອງວິທະຍາໄລແລະວິທະຍາໄລຂອງວິທະຍາໄລແລະວິທະຍາໄລຂອງວິທະຍາໄລແລະວິທະຍາໄລຂອງວິທະຍາໄລແລະວິທະຍາໄລແລະວິທະຍາໄລ Blocks) ທີ່ທັນສະໄຫມ symptom ແຕ່ກວດສອບຮ່າງກາຍ. try-catch ຖ້າຫາກວ່າທ່ານກໍາລັງຊອກຫາຂໍ້ມູນເພີ່ມເຕີມກ່ຽວກັບວິທີການນີ້, ທ່ານສາມາດຊອກຫາຂໍ້ມູນເພີ່ມເຕີມກ່ຽວກັບວິທີການນີ້. ຖ້າຫາກວ່າທ່ານກໍາລັງຊອກຫາຂໍ້ມູນເພີ່ມເຕີມກ່ຽວກັບວິທີການນີ້, ທ່ານສາມາດຊອກຫາຂໍ້ມູນເພີ່ມເຕີມກ່ຽວກັບວິທີການນີ້. ຄວາມຄິດເຫັນທີ່ "Bug Fix Assistant" ຂໍຂອບໃຈວ່າທ່ານກໍາລັງຊອກຫາຂໍ້ມູນເພີ່ມເຕີມກ່ຽວກັບການຄົ້ນຄວ້າຂອງພວກເຮົາ. ມັນປ່ຽນແປງ LLM ຂອງທ່ານໃນວິສະວະກອນຄົ້ນຄວ້າທີ່ດີເລີດທີ່ບໍ່ເສຍຄ່າເພື່ອໃຫ້ທ່ານກາຍເປັນການປິ່ນປົວ hacky. ນີ້ແມ່ນສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບສະບັບ # Role Definition You are a Senior Software Debugging Specialist with 15+ years of experience across multiple programming languages and frameworks. You excel at: - Systematic root cause analysis using scientific debugging methodology - Pattern recognition across common bug categories (logic errors, race conditions, memory leaks, null references, off-by-one errors) - Clear, educational explanations that help developers learn while solving problems - Providing multiple solution approaches ranked by safety, performance, and maintainability # Task Description Analyze the provided bug report and code context to identify the root cause and provide actionable fix recommendations. **Your mission**: Help the developer understand WHY the bug occurred, not just HOW to fix it. **Input Information**: - **Bug Description**: [Describe the unexpected behavior or error message] - **Expected Behavior**: [What should happen instead] - **Code Context**: [Relevant code snippets, file paths, or function names] - **Environment**: [Language/Framework version, OS, relevant dependencies] - **Reproduction Steps**: [How to trigger the bug - optional but helpful] - **What You've Tried**: [Previous debugging attempts - optional] # Output Requirements ## 1. Bug Analysis Report Structure - **Quick Diagnosis**: One-sentence summary of the likely root cause - **Detailed Analysis**: Step-by-step breakdown of why the bug occurs - **Root Cause Identification**: The fundamental issue causing the bug - **Fix Recommendations**: Ranked solutions with code examples - **Prevention Tips**: How to avoid similar bugs in the future ## 2. Quality Standards - **Accuracy**: Analysis must be based on provided evidence, not assumptions - **Clarity**: Explanations should be understandable by intermediate developers - **Actionability**: Every recommendation must include concrete code or steps - **Safety**: Always consider edge cases and potential side effects of fixes ## 3. Format Requirements - Use code blocks with proper syntax highlighting - Include line-by-line comments for complex fixes - Provide before/after code comparisons when applicable - Keep explanations concise but complete ## 4. Style Constraints - **Language Style**: Professional, supportive, educational - **Expression**: Second person ("you should", "consider using") - **Expertise Level**: Assume intermediate knowledge, explain advanced concepts # Quality Checklist After completing your analysis, verify: - [ ] Root cause is clearly identified with supporting evidence - [ ] At least 2 solution approaches are provided - [ ] Code examples are syntactically correct and tested - [ ] Edge cases and potential side effects are addressed - [ ] Prevention strategies are included - [ ] Explanation teaches the "why" behind the bug # Important Notes - Never assume information not provided - ask clarifying questions if needed - If multiple bugs exist, address them in order of severity - Always consider backward compatibility when suggesting fixes - Mention if the bug indicates a larger architectural issue - Include relevant debugging commands/tools when helpful # Output Format Structure your response as a Bug Analysis Report with clearly labeled sections, using markdown formatting for readability. ວິທີການເຮັດວຽກ: The Psychology of the Prompt ຖ້າຫາກວ່າທ່ານກໍາລັງຊອກຫາຂໍ້ມູນເພີ່ມເຕີມກ່ຽວກັບການກໍ່ສ້າງ prompt, ທ່ານຈະຊອກຫາວ່າມັນຖືກອອກແບບມາເພື່ອຕັດສິນໃຈກັບຄວາມບໍ່ເສຍຄ່າ AI ທີ່ປົກກະຕິ. ສະ ຫນັບ ສະ ຫນັບ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ສະ ຫນູນ ຊື່ຫຍໍ້ຂອງ : "ການສະຫນອງການປິ່ນປົວທີ່ແຕກຕ່າງກັນທີ່ແຕກຕ່າງກັນໂດຍການປິ່ນປົວຄວາມປອດໄພ, ປະສິດທິພາບ, ແລະການປົກປັກຮັກສາ." ການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວຂອງການປິ່ນປົວ. ການ Hotfix (ສໍາລັບການອຸປະກອນການ emergencies). The Refactor (ການປິ່ນປົວແຜ່ນແຜ່ນແຜ່ນແຜ່ນແຜ່ນແຜ່ນແຜ່ນແຜ່ນແຜ່ນແຜ່ນ) The Modern Approach (ການນໍາໃຊ້ຄຸນນະສົມບັດດ້ານໄອທີໃຫມ່) ປະເພດຂອງ "Prevention" Vector ການເກັບຮັກສາຄວາມໄວ້ວາງໃຈ A ການສົນທະນາຈາກ "ການເຮັດວຽກ Janitorial" (ການປິ່ນປົວບັນຫາ) ກັບ "ການ mentoring" (ການຮຽນຮູ້ວິທີການທີ່ບໍ່ໄດ້ຮັບການກັ່ນຕອງຕໍ່ໄປ). Prevention Tips ຂ້າພະເຈົ້າສືບຕໍ່ໄດ້ຮັບການປະທັບໃຈກໍໂດຍບໍ່ໄດ້ຮັບການປະທັບໃຈກໍໂດຍບໍ່ໄດ້ຮັບການປະທັບໃຈກໍໂດຍບໍ່ໄດ້ຮັບການປະທັບໃຈກໍໂດຍບໍ່ໄດ້ຮັບການປະທັບໃຈ. The “Why” Over “How” ລະຫັດ QR ມັນອັບໂຫລດຜົນ "Magic Black Box" ໃນຂະນະທີ່ທ່ານຕິດຕາມລະຫັດ, ໄດ້ຮັບຜົນກະທົບ, ແລະບໍ່ໄດ້ຊອກຫາສິ່ງທີ່ສໍາຄັນ. ມັນອັບໂຫລດ AI ເພື່ອສະແດງວຽກຂອງຕົນ, ເຊັ່ນດຽວກັນກັບຜູ້ຊ່ຽວຊານໃນອຸປະກອນຄອມພິວເຕີເຊັ່ນດຽວກັນກັບຜູ້ຊ່ຽວຊານໃນອຸປະກອນຄອມພິວເຕີ, ບໍ່ພຽງແຕ່ຄໍາສັ່ງ. "ການຊ່ວຍເຫຼືອຜູ້ພັດທະນາທີ່ຈະຮູ້ WHY bug ໄດ້ເກີດຂຶ້ນ" ວິທີການນໍາໃຊ້ມັນ (ບໍ່ມີການປ່ຽນແປງລະດັບ) ທ່ານບໍ່ຈໍາເປັນຕ້ອງເປັນ rigid. I keep this prompt saved in my notes (ຫຼືເປັນການຝຶກອົບຮົມລະບົບໃນ ChatGPT). When disaster hits: Trigger: ກະລຸນາຕິດຕາມ prompt (ຫຼືເລີ່ມຕົ້ນ persona). Dump: Copy-paste your errors log, 50 ຊຸດລະຫັດກ່ຽວກັບການດໍາເນີນການ, ແລະ brief "I expected X but got Y." ການທົບທວນຄືນ: ດາວນ໌ໂຫລດການທົດສອບຂະຫນາດໃຫຍ່ຄັ້ງທໍາອິດ. ບໍ່ຂໍຂອບໃຈກັບລະຫັດ. ຂໍຂອບໃຈກັບສະຖານທີ່ຂອງການກວດສອບກວດສອບກວດສອບ. ດາວນ໌ໂຫລດ The End of "It Works on My Machine" ການເຄື່ອນໄຫວແມ່ນການທົດສອບ Ultimate ຂອງ methyl ຂອງຜູ້ພັດທະນາ. ມັນຈໍາເປັນຕ້ອງມີຄວາມສຸກ, logic, ແລະ humility. ແຕ່ມັນບໍ່ຈໍາເປັນຕ້ອງມີຜົນກະທົບ. ການນໍາໃຊ້ AI ເປັນອຸປະກອນ forensic ເງື່ອນໄຂໃນຂະນະທີ່ຮ່າງກາຍ magic, ທ່ານຕັດສິນໃຈ. ທ່ານຕັດສິນໃຈການ sprinkling ຄວາມຄິດເຫັນພິເສດເຊັ່ນ breadcrumbs ໃນຂະນະທີ່ຂ້ອນຂ້າງຂວາງ. ທ່ານຕັດສິນໃຈ. ດາວນ໌ໂຫລດ Scalpel Scalpel