a guide on how to acquire console logs and sync different operating systems devices across
multiple machines, including the retrieval of web browsers’ console logs
Table of contents:
1. Acquiring Android crash logs on Windows machines
2. Acquiring Android crash logs on Mac OS machines
3. Acquiring Android crash logs on Linux machines
4. Acquiring iOS crash logs on Windows machines
5. Acquiring iOS crash logs on Mac OS machines
6. Acquiring console logs on Chrome
7. Acquiring console logs on Firefox
8. Acquiring console logs on Safari
9. Acquiring console logs on Opera
10. Acquiring console logs on MAC for Desktop apps
11. Acquiring console logs on Windows for Native apps
Acquire Crash Logs on Android devices using Windows machines
1.
4. Select Next
5. Select Standard and Next
6. In the last screen select Finish (the application will start downloading components)
1
7. After the components are downloaded select
19. On your mobile device reproduce the crash (Make sure that you start to gather the logs when you
reproduce the crash)
20. Unplug the device after the crash has occurred
21. Copy and paste the logs in a .txt file
From our past experience, the data provided by logs created with other applications (installed on the
device) does not provide accurate and full device and app information.
● http://developer.android.com/sdk/index.html?hl=sk
1. From the above link, click on the green “Download Android Studio” button
3
2. Make sure you read the terms and conditions, then tick the checkbox before downloading the
application
3. After the .dmg file is downloaded; run it then drag and drop it on the Applications folder icon
4
4. Launch Spotlight Search (cmd + space), type “android studio” and launch the application (click Open in
the warning alert)
5. When first opened, a “Java not found” pop up will appear - click on the link to download Java.
5
6. Proceed with downloading Java
7. After the download is finished, open javaforosx.dmg and double click on JavaForOSX.pkg
9. After the Java installation has been completed, run Android Studio again and proceed through the
onboarding flow:
10. When reaching the “Welcome to Android Studio” screen, select “Start a new Android Studio project”
and set up the work environment (you can use the pre-selected options).
6
11. After the project has been set up, click on the Android Device Monitor icon in the toolbar:
12. Connect your Android device to your Mac machine using a USB cable (note: USB debugging must be
turned on - this can be done in the Developer Options area of the device’s Settings app;)
7
13. Optionally, for ease of access, lock the Android Device Monitor app in the dock:
8
Acquire Crash Logs on Android devices using Linux machines
3.
From our past experience, the data provided by logs created with other applications (installed on the
device) does not provide accurate and full device and app information.
● http://developer.android.com/sdk/index.html?hl=sk
1. From the above link, click on the green “Download Android Studio” button
2. Make sure you read the terms and conditions, then tick the checkbox before downloading the
application
9
3. Download the file appropriate for your linux os. Ex:
Linux x64 172.84 MB jdk-8u60-linux-x64.tar.gz
10
● javac 1.7.0_25
13. Add JAVA_HOME to environment variable
● Edit / etc/environment and add J AVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the
file
● sudo nano /etc/environment
● Append to the end of the file
● JAVA_HOME=/usr/lib/jvm/java-7-oracle
14. Get back to the first instance of the Terminal application and re-run the last
command(/.studio.sh).
16. After the project has been set up, click on the Android Device Monitor icon in the toolbar:
17. Connect your Android device to your Linux machine using a USB cable.
18. . Optionally, for ease of access, pin the Android Device Monitor app in the launch-bar:
11
Acquiring Crash Logs on iOS devices using a Windows machine
4.
The crash log files are copied to the computer when syncing your device via iTunes.
● C:\Users\<USERNAME>\AppData\Roaming\Apple
Computer\Logs\CrashReporter/MobileDevice/<DEVICE_NAME>
● note: the AppData folder is hidden by default, you might need to enable view hidden files
3. Launch iTunes.
4. Click on the iPhone button in the top-left area of the screen (iPad or iPod if you are testing on the
respective device).
12
5. Sync your device with the computer
13
6. Wait for the synchronisation to finish.
14
Acquiring Crash Logs from iOS devices using a Macintosh machine
5.
The crash log files are copied to the computer when syncing your device via iTunes.
● iTunes should arrive with your Mac OS X operation system, however you can download iTunes from
this page: https://www.apple.com/itunes/download/
● Library\Logs\CrashReporter\MobileDevice\<DEVICE_NAME>
● note: the Library folder is hidden by default, you have to hold the option key to view it (it can be
accessed via the Finder’s menu bar)
15
How to obtain the logs:
11. Click on the iPhone button in the top-left area of the screen (iPad or iPod if you are testing on the
respective device).
16
12. Sync your device with the Mac
17
14. Find your app crash log.
18
Acquiring console logs on Chrome
6.
alternatively, press:
- Ctrl+Shift+I (Windows)
- Cmd+Option+I (Mac)
5. Reproduce the issue, and the log text can be copied and pasted into the bug report
19
Acquiring console logs on Firefox
7.
alternatively, press:
- Ctrl+Shift+K (Windows)
- Option+Command+K (Mac)
5. Reproduce the issue, and the log text can be copied and pasted into the bug report.
20
Acquiring console logs on Safari
8.
3. Select the Advanced tab, then tick the “Show Develop menu in menu bar”
4. Click on Develop in the menu bar, then select “Show Error Console” (CMD+Option+C)
21
5. Reproduce the issue, and the log text can be copied and pasted into the bug report.
22
Acquiring console logs on Opera
9.
alternatively, press:
- Ctrl+Shift+i (Windows)
5. Reproduce the issue, and the log text can be copied and pasted into the bug report.
23
10. Acquiring console logs on MAC for Native apps
1. Open the Console application (from the Utilities folder inside your Applications folder). OR use
CMD+SPACE command search CONSOLE
2. Click the leftmost button in the toolbar to show the sidebar, if it’s hidden.
24
3. Select All Messages in the tab bar or if it’s a crash select Errors and Faults
4. If the Activities button in the toolbar is enabled with a blue icon, click it to turn this off.
5. Switch back to the app, and try to trigger the issue. This will (hopefully!) print some output to the
Console.
6. Return to the Console, and select the recent error messages from the main window. You can also
search over the app tested
7. The log will be displayed in the lower part of the console window
8. Select the entire log then, open the TextEdit application and Paste the copied logs into a new plain text
document.
9. Save the text document in .txt format, and attach this to your report.
25
11. Acquiring console logs on Windows for Native apps
26
3. In the left side menu, select Windows Logs>Applications
4. Navigate through the list of entries and/or adjust your filter criteria until you find what you are
looking for (event related to the app under test or the latest event created)
7. A pop-up window is opened. Give a name to the log and select Text (*.txt) as file type
8. Click Save and Upload the *.txt file in your bug report.
27
28
Molto più che documenti.
Scopri tutto ciò che Scribd ha da offrire, inclusi libri e audiolibri dei maggiori editori.
Annulla in qualsiasi momento.