A bug is an error or flaw in code that causes unexpected behavior — a button that doesn't work, a calculation that returns wrong results, or a page that crashes. In vibe coding, bugs often come from AI misunderstanding your intent, hallucinating APIs, or generating code that works in isolation but breaks in context.
Bugs are inevitable — even in AI-generated code. The difference with vibe coding is that AI can also help you find and fix them.
Paste an error message to AI and describe what you expected. AI is excellent at: