When something goes wrong in Termux or one of its plugins, Android’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/termux/termux-app/llms.txt
Use this file to discover all available pages before exploring further.
logcat system is your primary diagnostic tool. Termux exposes configurable log levels in its settings so you can increase verbosity, collect logs, and attach them to bug reports — all without root or a PC in most cases.
Setting the log level
Log levels are configured per-app in Termux’s settings UI, available from Termux app version ≥ 0.118.0. Navigate to Termux Settings → <App Name> → Debugging → Log Level and choose one of the following:| Level | What is logged |
|---|---|
| Off | Nothing. All logging suppressed. |
| Normal | Errors, warnings, info messages, and stack traces. This is the default. |
| Debug | Adds debug-level messages on top of Normal. |
| Verbose | Adds verbose messages. Logs additional operational detail. |
Plugin apps need their own log level set
Plugin apps (Termux:Tasker, Termux:API, etc.) do not execute commands themselves. They send execution intents to the main Termux app, which carries out the actual work. This means log output is split across two processes:- Set the log level in Termux Settings → Termux → Debugging → Log Level to capture what the core app does.
- Also set the log level in Termux Settings → <Plugin Name> → Debugging → Log Level to capture what the plugin does before dispatching the intent.
Collecting logs
In the Termux terminal
View logs in real time:Ctrl+C to stop the stream.
Dump the current log buffer to a file:
From a connected PC via ADB
If the terminal is inaccessible (crash on launch, boot loop, etc.), collect logs from a PC:On non-rooted Android 6+ devices, some log entries from other apps may be redacted unless
READ_LOGS is granted to the shell via ADB: adb shell pm grant com.termux android.permission.READ_LOGS. For Termux’s own logs this is usually unnecessary.Generating a debug report automatically
The terminal’s long-hold context menu provides a one-tap way to bundle logs and filesystem metadata:Confirm adding debug info
When prompted with “Add debug info?”, tap YES. Termux will collect
logcat output and stat information for key Termux files and directories and append them to the report.Writing effective bug reports
When opening an issue on GitHub, always include a complete text report — not a screenshot of an error message. Partial information makes it very difficult to reproduce or diagnose problems. A complete report should include:Environment information
Environment information
- Termux version (
termux-infooutput, or from Settings → About) - Android version and device model
- Installation source (F-Droid, GitHub, Google Play)
- Whether any plugins are installed and their versions
Steps to reproduce
Steps to reproduce
A minimal, numbered sequence of steps that reliably triggers the issue. Include exact commands if relevant.
Expected vs actual behaviour
Expected vs actual behaviour
What you expected to happen and what actually happened, with the exact error message or symptom.
Logs
Logs
The
logcat dump or auto-generated debug report. Set the log level to Debug or Verbose before reproducing the issue, then collect the log immediately after.