docs / articles / How to Write a Bug Report: A Step-by-Step Example

How to Write a Bug Report: A Step-by-Step Example

Eric Jul 09, 2026 2026-07-09 04:40:47

Writing a clear and concise bug report is crucial for effective issue tracking and resolution. It helps developers understand the problem, reproduce it, and fix it efficiently. Here's a comprehensive guide on how to write an effective bug report, complete with examples.

How to write a good bug report?
How to write a good bug report?

Before we dive in, remember that a good bug report should be detailed, accurate, and easy to understand. It should provide all the necessary information for someone else to reproduce the issue and understand its impact.

the insect report is shown in this screenshote, and shows an image of a jar
the insect report is shown in this screenshote, and shows an image of a jar

Understanding the Bug

Before you start writing, ensure you have a solid understanding of the bug. Reproduce it consistently to confirm it's not a one-off issue. Understand its impact - what features or functionality is affected, and how severe is the issue?

a worksheet with an image of a jar and the words, my insect report
a worksheet with an image of a jar and the words, my insect report

For example, if you're reporting a bug in a web application, ensure you know the following:

  • The steps to reproduce the issue
  • The expected behavior
  • The actual behavior (what's happening)
  • The browser and version where the issue occurs
  • Any relevant user roles or permissions
insect research worksheet for kids with pictures and text on the front page to help students
insect research worksheet for kids with pictures and text on the front page to help students

Describing the Bug

Start your bug report with a clear, concise summary of the issue. Use the "When [this action] happens, [this] happens instead of [this]" format. For example:

"When I click on the 'Save' button, the form data disappears instead of being saved."

Bug worksheets with My Living World | Ad
Bug worksheets with My Living World | Ad

Providing Detailed Steps to Reproduce

Next, provide detailed, step-by-step instructions on how to reproduce the bug. Be as clear and concise as possible. Use bullet points or numbered lists for easy scanning. Include any relevant information like browser version, user roles, etc.

For instance:

Teaching First Graders to Write an Insect Report!
Teaching First Graders to Write an Insect Report!
  1. Open the application in Google Chrome (version 92)
  2. Navigate to the 'User Profile' page
  3. Click on the 'Edit Profile' button
  4. Make changes to the profile information
  5. Click on the 'Save' button
  6. Observe that the form data disappears instead of being saved

Gathering Evidence

Bug Report - How to Write Bug Report in Manual Testing-Bug Reporting in Software Testing-Bug Reports
Bug Report - How to Write Bug Report in Manual Testing-Bug Reporting in Software Testing-Bug Reports
Pens&Machine
Pens&Machine
an insect research worksheet with the name and description for each subject in this project
an insect research worksheet with the name and description for each subject in this project
two envelopes with drawings of ladybugs in a jar and another drawing of a ladybug
two envelopes with drawings of ladybugs in a jar and another drawing of a ladybug
Teaching First Graders to Write an Insect Report!
Teaching First Graders to Write an Insect Report!
Bug Observation Sheet
Bug Observation Sheet
Teachables Guest Home Page
Teachables Guest Home Page
Insect Report
Insect Report
Kinder Confections!
Kinder Confections!
18+ Report Writing Examples to Download
18+ Report Writing Examples to Download
Insect Research Report
Insect Research Report
Bug Report Templates for QA Teams
Bug Report Templates for QA Teams
Lisa Parnello
Lisa Parnello
Expository Writing Anchor Chart, Expository Writing Anchor Chart 3rd Grade, Expository Writing Anchor Chart 4th Grade, Features Of A Great Book Report K-2, How To Write An Expository Essay Anchor Chart, Ideas For Report Writing, Information Report Anchor Chart, Research Anchor Chart, Research Anchor Chart 2nd Grade
Expository Writing Anchor Chart, Expository Writing Anchor Chart 3rd Grade, Expository Writing Anchor Chart 4th Grade, Features Of A Great Book Report K-2, How To Write An Expository Essay Anchor Chart, Ideas For Report Writing, Information Report Anchor Chart, Research Anchor Chart, Research Anchor Chart 2nd Grade
FREE ANIMAL REPORTS for kindergarten and first grade Informational Nonfiction reading and writing
FREE ANIMAL REPORTS for kindergarten and first grade Informational Nonfiction reading and writing
Informational Writing
Informational Writing
Bug Research Lab Role-Play Pack (SB3816)
Bug Research Lab Role-Play Pack (SB3816)
REPORT WRITING FORMAT OF CLA (HOW TO WRITE A GOOD REPORT OF CLA)
REPORT WRITING FORMAT OF CLA (HOW TO WRITE A GOOD REPORT OF CLA)
Insects & Bugs Research Project | 30 Printable Worksheets, Reports, Posters
Insects & Bugs Research Project | 30 Printable Worksheets, Reports, Posters
Teaching First Graders to Write an Insect Report!
Teaching First Graders to Write an Insect Report!

Screenshots, error messages, and logs can provide valuable context and help developers understand the issue better. Always include relevant evidence in your bug report.

For example, if the bug causes a crash, include a screenshot of the crash report. If it results in an error message, include the full error message in your report.

Screenshots and Videos

Screenshots can help illustrate the issue visually. Use them to show the before and after states, or to highlight specific UI elements. Tools like Greenshot, Lightshot, or even the built-in tools in most operating systems can help capture screenshots quickly.

For more complex issues, consider recording a short video. Tools like Loom or OBS Studio can help create and share videos easily.

Error Messages and Logs

If the bug results in an error message, include the full error message in your report. If there are relevant logs, include them as well. You can usually find these in the browser console (F12 > Console) or in the application's log files.

For example:

Uncaught TypeError: Cannot read property 'length' of undefined
    at Object.foo (app.js:123)
    at HTMLButtonElement.onclick (index.html:456)

Testing and Verification

Before submitting your bug report, test it thoroughly. Ensure that the issue is reproducible and that your report includes all the necessary information. Ask a colleague to review your report and try to reproduce the issue.

This step helps ensure that the bug is real and that your report is accurate and complete. It also helps prevent duplicate bug reports and saves developers' time.

Submitting the Bug Report

Once you've gathered all the information, it's time to submit your bug report. Use your team's preferred bug tracking system (like Jira, Bugzilla, or GitHub Issues). Be sure to include all the information you've gathered in the report.

If your team uses a specific format or template for bug reports, use that. If not, you can use the following format as a guide:

Summary Description Steps to Reproduce Expected Behavior Actual Behavior Evidence Additional Information
Form data disappearing on save ... (Detailed description from above) ... (Detailed steps from above) Form data should be saved Form data disappears ... (Screenshots, error messages, logs) ... (Any other relevant information)

Finally, once your bug report is submitted, keep an eye on it. If developers need more information, they'll likely ask for it in the bug report. Respond promptly to keep the resolution process moving smoothly.

Writing a good bug report takes practice, but with these guidelines, you're well on your way to becoming a bug reporting pro. Happy hunting!