Modul referensi resmi Level 1 VibeKoding: Masalah Umum & Panduan Pemecahan Error.Modul referensi resmi Level 1 VibeKoding: Masalah Umum & Panduan Pemecahan Error.
const duration = 'Approx. 30 minutes'const duration = 'Approx. 30 minutes'
In the AI era, the way we troubleshoot errors has changed.In the AI era, the way we troubleshoot errors has changed.
You don't need to memorize all error types, you don't need to become a debugging expert, and you don't even need to understand what the error means.You don't need to memorize all error types, you don't need to become a debugging expert, and you don't even need to understand what the error means.
You only need to learn one thing: how to ask AI.You only need to learn one thing: how to ask AI.
This chapter will teach you a troubleshooting process from simple to advanced:This chapter will teach you a troubleshooting process from simple to advanced:
After mastering this process, you'll be able to solve 90% of errors yourself.After mastering this process, you'll be able to solve 90% of errors yourself.
All methods in this chapter are based on actual experience with AI IDEs like Cursor/Trae/Claude, and can be directly applied to daily development.All methods in this chapter are based on actual experience with AI IDEs like Cursor/Trae/Claude, and can be directly applied to daily development.
{ title: 'Add Information', description: 'Open F12 to locate problem' },{ title: 'Add Information', description: 'Open F12 to locate problem' }, { title: 'Iterate', description: 'Until problem is solved' }{ title: 'Iterate', description: 'Until problem is solved' } ]" />]" />
Many beginners' first reaction when encountering errors is: - Panic and start randomly modifying code - Spend half an hour searching "how to solve this specific error" - Try to understand what the error means yourself - Debug alone until late at night These are all wasting time. In the AI era, debugging has become a very simple matter: `` See error โ Screenshot โ Ask AI โ Do what AI says `` You don't need to understand the error, you don't need to know how to debug, you don't even need to know where the problem is. You only need to learn how to ask.Many beginners' first reaction when encountering errors is: - Panic and start randomly modifying code - Spend half an hour searching "how to solve this specific error" - Try to understand what the error means yourself - Debug alone until late at night These are all wasting time. In the AI era, debugging has become a very simple matter: `` See error โ Screenshot โ Ask AI โ Do what AI says `` You don't need to understand the error, you don't need to know how to debug, you don't even need to know where the problem is. You only need to learn how to ask.
No complex templates needed, choose from two methods:No complex templates needed, choose from two methods:
Method 1: Describe the phenomenonMethod 1: Describe the phenomenon
Format: What you just did, what happened nowFormat: What you just did, what happened now
CODE I just modified the login page code, now the page is blank, what should I do?
Method 2: ScreenshotMethod 2: Screenshot
Directly screenshot the current page or error messageDirectly screenshot the current page or error message
CODE [Screenshot] How to solve this error?
Best method: Description + ScreenshotBest method: Description + Screenshot
CODE I just modified the login page code, now the page is blank. [Screenshot] What should I do?
Remember: Describe the context clearly, add a screenshot, and AI can help you solve the problem faster.Remember: Describe the context clearly, add a screenshot, and AI can help you solve the problem faster.
Many beginners know they need to ask, but don't know how to say it. Actually, you only need to explain three things:Many beginners know they need to ask, but don't know how to say it. Actually, you only need to explain three things:
1. What you just did1. What you just did
CODE I just clicked the save button I just modified the login page code I just refreshed the page
2. What you see now2. What you see now
CODE Now the page is blank Now the button has no response when clicked Now it shows an error message
3. What effect you want to achieve3. What effect you want to achieve
CODE I want the data to save successfully I want the page to display normally I want a prompt to pop up after clicking the button
Complete example:Complete example:
CODE I just clicked the save button, now the page shows "Save failed" error. [Screenshot] I want the form data to save to the database successfully, what should I do?
Key principles:Key principles:
When encountering a problem, don't rush to open F12. First describe the phenomenon directly, screenshot the current page, and show it to AI.When encountering a problem, don't rush to open F12. First describe the phenomenon directly, screenshot the current page, and show it to AI.
Many times, AI can directly give a solution after seeing the screenshot.Many times, AI can directly give a solution after seeing the screenshot.
Page is blank `` The page opens blank, what should I do? [Screenshot] ` Button click has no response ` Clicking this button has no response, help me check. [Screenshot] ` Data won't save ` Clicked save, data didn't save, what should I do? [Screenshot] ` Style displays incorrectly ` This button position is off, how to adjust? [Screenshot] ` API error ` Calling the API resulted in an error, help me check. [Screenshot] ``Page is blank `` The page opens blank, what should I do? [Screenshot] ` Button click has no response ` Clicking this button has no response, help me check. [Screenshot] ` Data won't save ` Clicked save, data didn't save, what should I do? [Screenshot] ` Style displays incorrectly ` This button position is off, how to adjust? [Screenshot] ` API error ` Calling the API resulted in an error, help me check. [Screenshot] ``
Congratulations, problem solved! Just modify according to what AI says.Congratulations, problem solved! Just modify according to what AI says.
Then you need to open F12 and add key information. Read on.Then you need to open F12 and add key information. Read on.
When AI says it needs more information, open F12 and screenshot the corresponding content based on the problem type.When AI says it needs more information, open F12 and screenshot the corresponding content based on the problem type.
AI might reply like this:AI might reply like this:
At this point, add screenshots according to the guidance below.At this point, add screenshots according to the guidance below.
Step 1: Press F12 to open Developer Tools On Mac it's Cmd+Option+I, or right-click the page and select "Inspect". Step 2: Switch to Console tab Step 3: Screenshot the red error message Step 4: Send to AI `` Console error is as follows: [Screenshot] ``Step 1: Press F12 to open Developer Tools On Mac it's Cmd+Option+I, or right-click the page and select "Inspect". Step 2: Switch to Console tab Step 3: Screenshot the red error message Step 4: Send to AI `` Console error is as follows: [Screenshot] ``
Step 1: Press F12 to open Developer Tools Step 2: Switch to Network tab Step 3: Perform the operation again (click save/refresh page) Step 4: Find the corresponding request and screenshot - Look at URL and status code - Look at Payload (parameters passed) - Look at Response (returned result) Step 5: Send to AI `` Network information is as follows: Request: [Screenshot 1] Parameters: [Screenshot 2] Response: [Screenshot 3] ``Step 1: Press F12 to open Developer Tools Step 2: Switch to Network tab Step 3: Perform the operation again (click save/refresh page) Step 4: Find the corresponding request and screenshot - Look at URL and status code - Look at Payload (parameters passed) - Look at Response (returned result) Step 5: Send to AI `` Network information is as follows: Request: [Screenshot 1] Parameters: [Screenshot 2] Response: [Screenshot 3] ``
Step 1: Right-click element โ "Inspect" Developer Tools will automatically locate that element. Step 2: Screenshot the Styles panel Step 3: Send to AI `` Element styles are as follows: [Screenshot] ``Step 1: Right-click element โ "Inspect" Developer Tools will automatically locate that element. Step 2: Screenshot the Styles panel Step 3: Send to AI `` Element styles are as follows: [Screenshot] ``
These approaches will waste your time:These approaches will waste your time:
Follow this process:Follow this process:
CODE Encounter problem โ Describe phenomenon directly + screenshot โ Send to AI: "What should I do?" โ AI solves directly? โ Yes Do what AI says โ Test if solved โ โ No / AI needs more information Open F12, add key information โ Send to AI again โ Repeat until solved