Enabling developer options allow users to perform various debugging tasks, including viewing Logs, taking bug reports, etc. It can be very useful in various scenarios and aids tremendously in troubleshooting issues.
USB debugging may be prevented by policy for managed devices. Please consult your administrator/IT team for guidance on enabling developer options described below.
It'll now be possible to plug your device into a computer and undertake various debugging activities. When first plugging in, the device will prompt for authorisation. Allow this.
With developer options enabled:
The bug report will become available via a notification within a few moments. From there, share it to a preferred application or download it to a connected computer.
Alternatively, and as a preferred option, from the command line of a plugged in device run adb bugreport E:\Reports\MyBugReports
(choose an appropriate location on disk) to save a bug report directly to your computer without interacting with the device directly.
More details, via Google.
With developer options enabled:
adb logcat > path/filename.txt
Ctrl + C
to stop logging to file