-
Notifications
You must be signed in to change notification settings - Fork 23
Debug Mode
Debug Mode turns on a built-in log recorder that captures what the app is doing behind the scenes. Use it when you want to send useful information to support for a bug report, or when troubleshooting a dive-computer download, Bluetooth connection, or import problem.
While Debug Mode is enabled, Submersion appends timestamped entries to a single
log file (submersion.log) on the device. Each entry has a category and a
severity level so you can filter what you see.
| Category | What it covers |
|---|---|
| App | General app events, navigation, errors |
| Bluetooth | BLE discovery, pairing, and data transfer |
| Serial | USB / serial dive-computer connections |
| libdc | Output from the libdivecomputer engine |
| Database | Local database queries and migrations |
| Severity | When it's used |
|---|---|
| DEBUG | Verbose, step-by-step detail |
| INFO | Routine progress and milestones |
| WARN | Something unexpected, but recoverable |
| ERROR | Something failed |
The log file is capped at 5 MB. When it gets larger than that, Submersion trims the oldest entries automatically so the file never grows without bound.
Debug Mode is intentionally hidden so it doesn't get turned on by accident.
- Open the Settings tab (gear icon in the navigation bar).
- Scroll to the very bottom of the Settings page, where the Submersion app icon, name, and version number are shown.
- Tap the version number five times in quick succession.
- A "Debug mode enabled" notification appears at the bottom of the screen, confirming that recording has started.
Once enabled, a new Debug entry appears in the Settings list, just above About. It has a bug icon and the subtitle "Logs & diagnostics."
With Debug Mode on, do whatever triggers the issue you want to report — download a dive, import a file, sync, etc. The relevant events will be recorded as they happen.
Open Settings → Debug to see the captured log entries.
The viewer offers three ways to narrow down what's shown:
| Control | What it does |
|---|---|
| Category chips | Tap a chip (App, Bluetooth, Serial, libdc, Database) to toggle that category on or off. |
| Min severity | Hide entries below the selected severity. Set to WARN or ERROR to focus on problems. |
| Search (magnifying-glass icon) | Filter entries that contain a specific word, error message, or device name. |
The three buttons at the bottom of the Debug Log Viewer let you export the captured information.
| Button | What it sends | When to use it |
|---|---|---|
| Share | The full log file, attached as submersion.log, via your device's share sheet (email, Messages, AirDrop, etc.) |
The recommended option when filing a bug report or sending logs to support. |
| Copy | Only the filtered entries currently visible on screen, as plain text on your clipboard. | When you want to paste a small, relevant slice into a GitHub issue or forum reply. |
| Save | The full log file, saved to a location you choose, as submersion-debug-logs.txt. |
When you want a local copy you can attach later. |
To wipe the log file and start fresh (useful before reproducing a specific issue):
- Open Settings → Debug.
- Tap the three-dot menu in the top-right corner.
- Choose Clear Logs.
When you are done troubleshooting, turn Debug Mode back off so the app stops writing to the log file.
- Open Settings → Debug.
- Tap the three-dot menu in the top-right corner.
- Choose Disable Debug Mode.
You'll be returned to Settings, and the Debug section will disappear from the list.
Submersion's debug logs are stored only on your device until you choose to share them. They are not uploaded automatically and not transmitted to Submersion or any third party.
The log file can contain technical details such as dive-computer model names, Bluetooth identifiers, file names being imported, and database error messages. Before sharing a log with someone outside your trusted circle, you may want to open the file in a text editor and review it.
| Problem | What to try |
|---|---|
| Tapping the version doesn't activate Debug Mode | Tap faster — all five taps need to land in quick succession. |
| No entries appear in the viewer | Debug Mode only records events that happen after it's enabled. Reproduce the issue first, then come back. |
| Old entries are missing | The log file is capped at 5 MB; older entries are trimmed automatically. Clear the log and reproduce only the specific scenario you want to capture. |
Getting Started
Logging Your Dives
- The Dashboard
- Logging Dives
- Dive Profiles & Deco
- Dive Computers
- Import & Export
- Data Quality Assistant
Your Dive World
Diver & Gear
Insights & Planning
Setup & Data
Reference