A bug is a defect in software, whether in the code, the design or the configuration, that makes the program behave incorrectly or unexpectedly. The cause can be a typo, a wrong assumption, a missed edge case or an unexpected interaction between components.
Why it matters
Bugs cost time and money, and their severity ranges from a cosmetic misalignment to data loss or an outage. Clear bug reports speed up fixes, and automated tests stop fixed bugs from returning. Finding the cause is called debugging.
Example
A useful bug report includes steps, expected and actual behavior:
Title: Coupon applies twice on checkout
Steps: 1) Add item 2) Apply SAVE10 3) Go back, apply SAVE10 again
Expected: discount applied once (10%)
Actual: discount applied twice (19%)
Environment: Chrome 130, production
With that, a developer can reproduce it, fix it and add a unit test to prevent a repeat.
Common mistakes
- Reporting "it doesn't work" without steps, error messages or the environment.
- Fixing the symptom rather than the root cause, so the problem comes back elsewhere.
- Not adding a regression test after the fix.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.