1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-09 08:45:55 +02:00
joplin/readme/debugging.md

66 lines
3.1 KiB
Markdown
Raw Normal View History

2017-12-17 19:54:29 +02:00
# How to enable debugging
It is possible to get the apps to display or log more information that might help debug various issues.
## Desktop application
2021-10-06 16:19:58 +02:00
If the application starts with a white screen, open **Help > Toggle Development Tools** in the menu. Then check in the console if there is any error or warning and please let us know about it.
2021-08-05 17:04:08 +02:00
Otherwise, follow these instructions:
- Click on menu **Help > Open Profile Directory** and add a file named "flags.txt" in your directory with the following content: `--open-dev-tools --debug --log-level debug`
2017-12-17 19:54:29 +02:00
- Restart the application
- The development tools should now be opened. Click the "Console" tab
- Now repeat the action that was causing problem. The console might output warnings or errors - please add them to the GitHub issue. Also open log.txt in the config folder and if there is any error or warning, please also add them to the issue.
2022-03-29 20:25:27 +02:00
Make sure you disable debugging once you've finished. Leaving it enabled can cause your log.txt to grow very quickly. To disable debugging, simply delete the "flags.txt" file created.
2017-12-17 19:54:29 +02:00
## CLI application
- Start the app with `joplin --debug --log-level debug`
- Check log.txt as specified above for the desktop application and attach the log to the GitHub issue (or just the warnings/errors if any). The profile directory would be in `~/.config/joplin`.
2017-12-17 19:54:29 +02:00
## Mobile application
- In the [Configuration screen](https://github.com/laurent22/joplin/blob/dev/readme/config_screen.md), press on the **Log button** and post a screenshot of any error/warning.
2018-05-02 21:16:08 +02:00
2018-05-09 17:33:16 +02:00
# Creating a low-level bug report on Android
https://developer.android.com/studio/debug/bug-report
To get a bug report directly from your device, do the following:
2018-05-09 17:33:16 +02:00
- Be sure you have [Developer Options](https://developer.android.com/studio/debug/dev-options) enabled.
- In Developer options, tap Take bug report.
- Select the type of bug report you want and tap Report.
After a moment you get a notification that the bug report is ready. To share the bug report, tap the notification.
# Creating a low-level bug report on iOS
2018-05-02 21:16:08 +02:00
Some crashes cannot be investigated using Joplin's own tools. In that case, it can be very helpful to provide a native iOS crash report.
For this, please follow these instructions:
You can send it to this address https://raw.githubusercontent.com/laurent22/joplin/dev/Assets/AdresseSupport.png
2018-05-02 21:16:08 +02:00
https://developer.apple.com/library/content/qa/qa1747/_index.html
Getting Crash Logs Directly From a Device Without Xcode
Your users can retrieve crash reports from their device and send them to you via email by following these instructions.
(It is not possible to get device console logs directly from a device)
1) Open Settings app
2) Go to Privacy, then Diagnostics & Usage
3) Select Diagnostics & Usage Data
4) Locate the log for the crashed app. The logs will be named in the format: `<AppName>_<DateTime>_<DeviceName>`
2018-05-02 21:16:08 +02:00
5) Select the desired log. Then, using the text selection UI select the entire text of the log. Once the text is selected, tap Copy
6) Paste the copied text to Mail and send to an email address as desired