Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions bug_reports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: page
title: Creating Useful Bug Reports
permalink: /bug_reports/
---

The instructions in this document detail the current steps required to provide the most actionable bug reports for crashes and other bad behavior. Each step is optional but will greatly improve how quickly issues are diagnosed and addressed. We appreciate your effort in sending us as much feedback as possible.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a second paragraph here praising anyone who's willing to send us feedback.

## Create an Issue on Github
* A new Github issue may be created at https://github.com/flutter/flutter/issues/new

## Provide the Flutter Version
* Run `flutter --version` in your project and paste the results into the Github Issue
![flutter version](/images/flutter_version.png)

## Run the Command in Verbose Mode
Follow these steps only if your issue is related to the `flutter` tool.
* All Flutter commands accept the `--verbose` flag. If attached to the issue, the output from this command may aid in diagnosing the issue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "If your problem is with the 'flutter' tool, then:" or some such (since people attaching verbose "flutter run" output to every framework bug is going to get old fast)

* Attach the results of the command to the Github issue.
![flutter verbose](/images/verbose_flag.png)

## Provide the Most Recent Logs
* Logs for the currently connected device may be accessed via `flutter logs`
* If the crash is reproducible, clear the logs (⌘ + k on Mac), reproduce the crash and copy the newly generated logs into a file attached to the bug report.
* If you are getting exceptions thrown by the framework, include all the output between and including the dashed lines of the first such exception.
![flutter logs](/images/logs.png)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add:

  • If you are getting exceptions thrown by the framework, include all the output between and including the dashed lines of the first such exception.

## Provide the Crash Report
* In case the iOS simulator crashes, a crash report is generated in `~/Library/Logs/DiagnosticReports/`.
* In case the iOS device crashes, a crash report is generated in `~/Library/Logs/CrashReporter/MobileDevice`.
* Find the report corresponding to the crash (usually the latest) and attach it to the Github issue.
![crash report](/images/crash_reports.png)
Binary file added images/crash_reports.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/flutter_version.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/verbose_flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ to install Flutter and run your first app on Android and iOS.

- [Source on GitHub](https://github.com/flutter/flutter)
- [Issue tracker](https://github.com/flutter/flutter/issues)
- [Writing Useful Bug Reports](bug_reports)
- [FAQ](faq)