📖 Step 7: Testing & Quality#182 / 291

Bug

Bug

📖One-line summary

A flaw where something doesn't behave as intended.

💡Easy explanation

An error where a program doesn't behave as intended. Anything from a button that doesn't respond to wrong results — all of it is bugs.

Example

Unexpected errors in the code

🐛

TypeError: Cannot read property

at UserProfile.tsx:42

user.name is undefined

Vibe coding prompt examples

>_

Build a bug report template. Create an issue template that includes symptom, reproduction steps, expected behavior, actual behavior, and environment info.

>_

Find bugs in this code. It seems to hit an infinite loop under certain conditions; analyze the cause and fix it.

Try these prompts in your AI coding assistant!