Metadata-Version: 2.5
Name: debugealo
Version: 1.1.1
Summary: Local-first Docker debugging, with a UI-independent Python engine.
Project-URL: Homepage, https://github.com/carlosrivas2021/debuguealo
Project-URL: Repository, https://github.com/carlosrivas2021/debuguealo
Project-URL: Issues, https://github.com/carlosrivas2021/debuguealo/issues
Project-URL: Changelog, https://github.com/carlosrivas2021/debuguealo/blob/main/CHANGELOG.md
License-Expression: MIT
License-File: LICENSE
Keywords: compose,debugger,debugpy,delve,docker,tui
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Debuggers
Requires-Python: >=3.12
Requires-Dist: debugpy<2,>=1.8
Requires-Dist: docker<8,>=7.1
Requires-Dist: platformdirs<5,>=4.3
Requires-Dist: pydantic<3,>=2.10
Requires-Dist: pyte<0.9,>=0.8.2
Requires-Dist: pywinpty<4,>=3.1.2; sys_platform == 'win32'
Requires-Dist: rich<15,>=13.9
Requires-Dist: textual<7,>=1
Requires-Dist: typer<1,>=0.15
Description-Content-Type: text/markdown

<h1 align="center">debugealo</h1>

<p align="center">
  <strong>Local-first Docker debugging, right in your terminal.</strong><br>
  Watch your containers, run Compose safely, and step through Python, Go and Node code<br>
  from one keyboard-driven dashboard. No cloud, no IDE required.
</p>

<p align="center">
  <img alt="Python 3.12+" src="https://img.shields.io/badge/python-3.12%2B-3776AB?logo=python&logoColor=white">
  <img alt="Docker" src="https://img.shields.io/badge/docker-required-2496ED?logo=docker&logoColor=white">
  <img alt="Platforms" src="https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-555">
  <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green">
</p>

---

<p align="center">
  <img alt="Containers dashboard: launch profiles, live container details, streaming logs and a confirmed recreate" src="https://raw.githubusercontent.com/carlosrivas2021/debuguealo/main/docs/assets/containers.gif" width="900">
</p>

<p align="center">
  <img alt="Code area: setting a breakpoint, debugging a Python profile, stepping and reading variables" src="https://raw.githubusercontent.com/carlosrivas2021/debuguealo/main/docs/assets/code.gif" width="900">
</p>

## Quick start

```console
curl -LsSf https://astral.sh/uv/install.sh | sh   # 1. install uv (once)
uv tool install debugealo                          # 2. install debugealo (or: pipx install debugealo)
debugealo doctor                                   # 3. check Docker access
debugealo                                          # 4. open the dashboard
```

To update, run `uv tool upgrade debugealo` (or `pipx upgrade debugealo`). The dashboard tells
you when a newer release exists: at most once a day it reads the repository's release tags with
`git ls-remote`, never prompting for credentials. Offline it stays silent; set
`DEBUGEALO_NO_UPDATE_CHECK=1` to turn the check off.

To try the latest unreleased code instead:
`uv tool install git+https://github.com/carlosrivas2021/debuguealo`.

uv downloads a suitable Python if you don't have one. Docker is the only other requirement.
Debugging Go also needs [Delve](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/go-debugging.md):
`go install github.com/go-delve/delve/cmd/dlv@latest`.

## What you get

| | Feature | In short |
|---|---|---|
| 🐳 | **Containers** | Running and stopped containers grouped by Compose project, with live CPU and memory, health, restart policy, mounts and exit codes, and historical and live logs that reconnect when containers change. |
| 🚀 | **Launch profiles** | Save your Compose setups once in a central `launch.json`, then run **Play / Recreate** or **Build + Recreate** with an inline confirmation. |
| 🐞 | **Debugging** | Breakpoints, conditional breakpoints, hit counts, logpoints, a breakpoints list to switch them off without removing them, pausing on exceptions, watch expressions, a debug console, stepping, stack/variable inspection, nested variables and changing variables while paused for **Python**, **Go** and server-side **Node**. |
| 🔌 | **Attach** | Connect to an existing loopback `debugpy`, Delve or Node Inspector target, for example inside a container, without taking over its lifecycle. |
| 💻 | **Terminals** | A container shell and a host Bash docked inside the dashboard. |
| 🎨 | **Themes** | **Ctrl+P → Theme** recolors the whole app; the near-black **debugealo** theme is the default and your pick is remembered. |
| 🛡️ | **Safe by default** | Destructive actions ask first, image downloads need consent, and debug ports listen on `127.0.0.1` only. |

## Keyboard cheat sheet

**Everywhere**

| Key | Action |
|---|---|
| `Ctrl+T` | Switch between **Containers** and **Code** |
| `?` | List the shortcuts of the area on screen, grouped by task (`Tab` shows the other area, `Esc` closes) |
| `Ctrl+O` | Edit `launch.json` in the built-in editor (`Ctrl+S` saves, `Esc` closes) |
| `/` | Filter the list: projects and containers, or Code profiles (`Enter` keeps it, `Esc` clears it) |
| `Ctrl+Left` / `Ctrl+Right` | Move focus between panes (`Alt+Left` / `Alt+Right` too, for macOS) |
| Drag with the mouse | Copy the selected text (whole rows in container logs) |

**Containers**

| Key | Action |
|---|---|
| `r` | Preview **Play / Recreate** |
| `Shift+R` | Preview **Build + Recreate** |
| `s` | Stop the selected container or project, after confirmation |
| `Shift+A` | Edit the AWS config and credentials files side by side |
| `Ctrl+L` | Open logs (`D` or `Esc` closes them, `Ctrl+R` reconnects) |
| `C` / `H` | Open the container shell / host Bash |
| `Shift+PgUp` / `Shift+PgDn` or the mouse wheel | Scroll back through a terminal's output (any key returns) |
| `O` | Show or hide the output console |
| `Space` | Collapse or expand a group |

**Code**

| Key | Action |
|---|---|
| `F5` | Run the profile, or **Continue** while paused |
| `Shift+F5` | Debug the profile |
| `F9` / `Shift+F9` | Toggle a breakpoint / add a condition, logpoint or hit count |
| `Space` / `Delete` / `A` in **BREAKPOINTS** | Switch the breakpoint off or on / remove it / switch all off or on (**Enter** opens its line) |
| `F10` / `F11` / `Shift+F11` | Step over / in / out |
| `Ctrl+F10` | While paused, run to the line under the source cursor |
| `Enter` on a variable | Change its value while paused |
| `Space` or `Right` / `Left` on a variable or watch | Expand / collapse its fields |
| `C` on a variable or watch | Copy its whole value |
| `E` | Pause on uncaught exceptions → all exceptions → none, for the project |
| `S` | Stop the selected run |
| `R` | Restart the running profile, or reload `launch.json` when it is stopped |
| `P` | Go to the running program's input (**Esc** returns to the profiles) |
| `:` | While paused, evaluate an expression in the selected frame (**↑**/**↓** history, **Esc** returns) |

The full workflow is in the [keyboard guide](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/tui.md).

## Command line

```console
debugealo                      # open the dashboard (same as `debugealo tui`)
debugealo doctor               # check Python, config, Docker access and Delve
debugealo containers [--json]  # list containers
debugealo logs <name> --tail 100 [--follow]
debugealo version
```

`doctor` exits with `0` when every check passes, `1` when Docker is unavailable or access is
denied, and `2` for invalid configuration. A missing Delve is only a warning.

## Try it

| Example | What it shows |
|---|---|
| [`examples/fastapi-debug`](examples/fastapi-debug/README.md) | Attach to a Python `debugpy` target running in a container |
| [`examples/multi-project`](examples/multi-project/README.md) | Three independent Compose projects that share a network |

## Documentation

| Start here | Go deeper |
|---|---|
| [Keyboard workflow](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/tui.md) | [Architecture](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/architecture.md) |
| [Launch profiles](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/launch-profiles.md) | [Docker integration and limits](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/docker.md) |
| [Code projects and debugging](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/code-projects.md) | [Configuration](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/configuration.md) |
| [Compose safety and limits](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/compose.md) | [Python](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/python-debugging.md) · [Go](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/go-debugging.md) debugging |
| [Container controls](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/container-controls.md) | [Multi-project setups](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/multi-project.md) · [Terminal](https://github.com/carlosrivas2021/debuguealo/blob/main/docs/terminal.md) |

## Platform notes

- **Linux:** use Docker Engine and grant your account socket access according to your
  organization's policy.
- **macOS:** use Docker Desktop.
- **Windows:** use PowerShell and Docker Desktop in Linux-container mode. Windows has not been
  rechecked since the Python attach and F5/F9 changes.

> [!WARNING]
> Docker access is privileged. Do not expose its socket, make it world-writable, or run
> debugealo as administrator to work around configuration errors.

After installation, debugealo works offline. Installing dependencies and building the example
images may download packages.

## Development

```console
uv sync --locked
uv run debugealo
uv run pytest -m "not integration" -n auto   # unit tests, in parallel on every core
uv run pytest                                # full suite: needs Docker, and Delve as `dlv`
uv run ruff check . && uv run ruff format --check .
```

The Go debugging tests fail rather than skip when Delve is missing.

### Releasing

Versions are managed by [release-please](https://github.com/googleapis/release-please) from
Conventional Commits: `fix:` bumps the patch, `feat:` the minor, and a breaking change the
major (the minor while below 1.0). Every push to `main` keeps a release PR up to date with the next
version and `CHANGELOG.md`; merging it tags `vX.Y.Z` and publishes a GitHub Release. Never edit
the version by hand — `pyproject.toml` is the single source and `debugealo version` reads it
from the installed package. The repository must allow GitHub Actions to create pull requests
(Settings → Actions → General → Workflow permissions).

<details>
<summary><strong>Coming from <code>debugpilot</code>?</strong></summary>

The distribution, package and command are now named `debugealo`. `python -m debugpilot` and
`debugpilot.*` imports still work, but the `debugpilot` command is no longer installed.
Configuration, profiles and breakpoints stay where they were, so nothing needs migrating.
To update an existing checkout:

```console
uv sync --inexact --frozen --reinstall-package debugealo
```

</details>

## License

[MIT](https://github.com/carlosrivas2021/debuguealo/blob/main/LICENSE)
