Error message၊ reproduce အဆင့်နဲ့ “မထိရသောနေရာ” ကို ပေးပြီး AI ကို ဆရာမဟုတ်ဘဲ လက်ထောက်အဖြစ် သုံးမည်။
ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်
Debug prompt ကောင်းရင် AI က ရှာဖွေချိန်တိုစေပါတယ်။ မကောင်းရင် မဆိုင်တဲ့ file တွေ ပြင်ပါတယ်။ ကိုယ်က ဖြစ်ပုံကို ပိုင်ရပါတယ်။ ဘယ် button နှိပ်လဲ၊ ဘာမြင်လဲ၊ console မှာဘာလဲ။ AI ကို “fix it” မခိုင်းခင် “ပထမဆုံး ဘယ် function ကို သံသယရှိလဲ ပြော” လို့ခိုင်းပါ။ ဒါမှ ကိုယ်လည်း သင်ယူရပါတယ်။
နေ့စဉ်ဘဝနဲ့ ချိတ်ကြည့်မယ်
Stack trace ကို အပြည့်ကူးပါ။ “Cannot read properties of undefined (reading map)” ဆိုရင် ဘယ် array က undefined ဖြစ်နိုင်လဲကို အရင်မေးပါ။ Fix မခိုင်းခင် root cause ကို ပြောခိုင်းပါ။ ပြင်ပြီးရင် အဲဒီ bug ကို ပြန်ဖြစ်အောင် စမ်းပါ။ ပြန်မဖြစ်မှ ပိတ်ပါ။
အတူတူ လက်တွေ့စမ်းမယ်
Bug report for AI
1. Open /mm/notes
2. Click Add with empty input
3. Actual: page crashes
4. Expected: inline “title required”
5. Console: TypeError notes.map is not a function
6. Do not change create UI. Inspect loadNotes() first.AI ကို debug လက်ထောက်အဖြစ် သုံးပြီး root cause ကို ကိုယ်တိုင်နားလည်နိုင်မည်။၅ မိနစ် စမ်းကြည့်
လက်ရှိ bug တစ်ခုအတွက် အပေါ်ကပုံစံအတိုင်း bug report ရေးပါ။ AI ကို fix မခိုင်းခင် အကြောင်းရင်းမေးပါ။
သတိလေးတစ်ချက်
AI output ကို အပြီးသတ်အမှန်လို့မယူပါနှင့်။ Code၊ secret နှင့် user data ကို လူကပြန်ဖတ်၊ စမ်းပြီးမှ သုံးပါ။