---
title: "<code class=\"docutils literal notranslate\"><span class=\"pre\">pbl</span> <span class=\"pre\">console</span></code>"
canonical_url: https://developer.repebble.com/pebbleos/docs/pbl/console/
last_updated: 2026-10-21
sdk_version: 4.33.1
---
# <code class="docutils literal notranslate"><span class="pre">pbl</span> <span class="pre">console</span></code>

Source: https://developer.repebble.com/pebbleos/docs/pbl/console/

Attach to the firmware’s console: over serial on a watch, over TCP to a running emulator.

```
pbl console# the emulatorpbl console --tty /dev/ttyACM0# a watch
```

Send `help` to list the console commands. Firmware log messages are hashed at compile time, so the binary only contains a hash and the arguments; the console dehashes them on the fly using the dictionary the build generates at `build/fw/loghash_dict.json` (`build/prf/fw/loghash_dict.json` for PRF builds). [Debugging](https://developer.repebble.com/pebbleos/docs/development/debugging.md) covers the flash log buffer and coredumps.

## Options

```
pbl console [-h] [-b DIR] [--dry-run] [--tty TTY] [--baudrate BAUDRATE]
            [--qemu-host QEMU_HOST] [--reconnect]
```

`--tty TTY`

tty to use for the console

`--baudrate BAUDRATE`

Baudrate for the target’s uart

`--qemu-host QEMU_HOST`

host:port for the emulator’s console (default: localhost:12345)

`--reconnect`

Wrap the console in a keep-alive driver that reconnects

Generated from PebbleOS [3a7b71785](https://github.com/coredevices/pebbleos/commit/3a7b71785fd439666c4a8bc116f561140e8dec01). This page is maintained in the pebbleos repository: [docs/pbl/console.md](https://github.com/coredevices/pebbleos/blob/3a7b71785fd439666c4a8bc116f561140e8dec01/docs/pbl/console.md).
