Early accessFree up to a million events a month.Sign up free
Skip to Content
Docs

Readable stacks

Upload each build's symbols or source maps once, and crashes and errors show the functions, files and lines of your source.

A release build's stack doesn't say much on its own. An iOS crash is a list of offsets (Tilefall +0x1a2b3c), an Android release is renamed by R8 (u.a), C and C++ frames are addresses, a website's bundle is minified (n.weight main.js:1:139), a React Native release runs Hermes bytecode, and an obfuscated Flutter build prints Dart frames by address. Upload each build's symbols or source maps once with the command-line tool, and the event's page shows Stack with the function, file and line of every frame instead.

PlatformWhat you uploadCommand
iOS, macOSThe build's dSYMslyrelog symbols upload path/to/Tilefall.xcarchive
AndroidThe release's R8 mapping and your native libraries' debug informationlyrelog symbols upload app/build
Website, NodeEach bundle's source map, after giving the bundles a debug idlyrelog sourcemaps inject dist, then lyrelog sourcemaps upload dist
React NativeThe release bundle's source map (Hermes's)withLyrelog in metro.config.js, then lyrelog sourcemaps upload android/app/build
FlutterThe folder --split-debug-info wrote, and the obfuscation maplyrelog symbols upload build/debug-info

Each command uploads only what the project doesn't have yet, so running it on every build is cheap. A build's symbols are matched by an id the build itself carries (the binary's UUID, the mapping's id, the library's build id, the bundle's debug id), never by version names, so two builds with the same version never mix.

The stack is read when you open the event, so symbols uploaded after a crash still make it readable. Errors are grouped by the function of your own code they happened in once the symbols are there: upload them before you release, so a new problem's first events are grouped the same way as the rest.

The event's page

Stack lists the frames, the innermost first. Each one shows its function, file and line; functions the compiler inlined show above the one they were inlined into, marked inlined. Frames of code with no symbols (the system's, a library you didn't build) stay as they were sent, dimmed. As sent switches to the frames as the app sent them.

When the symbols of a build in the stack are missing, the card says which build and the command that uploads them. Only your app's own builds are named: nobody can upload the system's.

The MCP server's get_event returns the same frames, so an AI app reads the stack as you do.

iOS and macOS

The dSYMs are in the build's archive. Point at it, at a .dSYM, or at a folder of them:

lyrelog symbols upload ~/Library/Developer/Xcode/Archives/2026-11-25/Tilefall.xcarchive

The tool reads the debug information on your Mac and uploads a compact map of it: function names (Swift's demangled), file names without their folders, and lines. It needs Xcode's command-line tools for Swift names.

To upload on every archive, add a Run Script phase in Xcode with an access token in LYRELOG_TOKEN (lyrelog tokens create). Add ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME} to the phase's Input Files, so Xcode lets the script read the dSYM:

[ "$CONFIGURATION" = "Release" ] || exit 0
export PATH="$PATH:/opt/homebrew/bin:/usr/local/bin"
lyrelog symbols upload "$DWARF_DSYM_FOLDER_PATH" -p tilefall || echo "warning: Lyrelog symbols not uploaded"

Android

Point at the app's build folder after a release build:

./gradlew assembleRelease
lyrelog symbols upload app/build

It finds two kinds of symbols there:

  • The R8 mapping (mapping.txt), which turns the classes and methods R8 renamed back into yours, inlined calls included. Each frame of a release built with Android Gradle Plugin 8 or later names its mapping, so the right one is always used.
  • Your native libraries' debug information (C and C++, the NDK, a game engine). Gradle keeps the unstripped .so files under build/intermediates, or in native-debug-symbols.zip. Each library is matched by its build id. Android's own libraries stay as sent.

Websites and Node

A bundle needs a debug id so the SDK can say which source map goes with it. It takes the JavaScript SDK 1.1.0 or later.

Build with source maps

Vite: build.sourcemap (true or "hidden"). webpack: devtool: "source-map". esbuild: --sourcemap. Inline maps aren't read, since they would send your sources to every visitor.

Give the bundles their debug ids

lyrelog sourcemaps inject dist

Each bundle gets an id in a comment at its end and in its map, and a short line at its start that tells the SDK which id the bundle has. Its map is adjusted for that line, so it stays exact. A bundle that already has an id keeps it, and running it twice changes nothing.

Deploy the bundles as inject left them

You don't need to deploy the .map files.

Upload the source maps

lyrelog sourcemaps upload dist

Run all of it in the same build, after the bundler and before deploying. The upload leaves out the sources' text (Lyrelog keeps no source code) and makes paths from your machine relative to the folder you run it in. It also reads which function each part of the bundle is, so frames show Board.weight rather than the minified n.weight.

React Native

A release's JavaScript is compiled to Hermes bytecode, so its frames read at onPress (address at main.jsbundle:1:716194). Give each release bundle a debug id in metro.config.js, with the React Native SDK 1.1.0 or later:

const { withLyrelog } = require('@lyrelog/react-native/metro');
module.exports = withLyrelog(mergeConfig(getDefaultConfig(__dirname), config));

Then upload the source map after each release build:

  • Android: after ./gradlew assembleRelease, lyrelog sourcemaps upload android/app/build. It finds the map Hermes wrote.
  • iOS: React Native writes the map only when SOURCEMAP_FILE is set. Add export SOURCEMAP_FILE="$DERIVED_FILE_DIR/main.jsbundle.map" at the top of the Bundle React Native code and images build phase. At its end, for release builds, run lyrelog sourcemaps upload "$SOURCEMAP_FILE" -p tilefall || echo "warning: Lyrelog source map not uploaded", with an access token in LYRELOG_TOKEN as for the dSYMs.

Frames then show the names of your source's functions, as Metro records them (Button.props.onPress src/App.tsx:53). Development bundles are left as they are.

Flutter

A release built with --split-debug-info (and usually --obfuscate) prints its Dart stacks by address. Upload the folder it wrote and, if you obfuscate, the obfuscation map:

flutter build apk --obfuscate --split-debug-info=build/debug-info \
  --extra-gen-snapshot-options=--save-obfuscation-map=build/debug-info/obfuscation.map.json
lyrelog symbols upload build/debug-info

Each frame then shows its function, file and line, and an obfuscated error type reads as its real name. Files of Dart, the Flutter engine and packages are named as Dart names them (dart:async/future.dart, package:flutter/...), and errors are grouped by your app's own functions. Upload each build's folder (Android and iOS write one each).

Upload on every build

Make the upload the last step of your release build, so no build ships without its symbols. Each command uploads only what the project doesn't have yet, and || echo keeps a failed upload from failing the build. The machine that builds needs the CLI, and an access token in LYRELOG_TOKEN (Scripts and CI). Replace tilefall with your project.

For iOS, the Run Script phase is in iOS and macOS, and React Native's iOS step in React Native.

Android with Gradle

In app/build.gradle.kts, after each assembleRelease or bundleRelease:

val lyrelogSymbols = tasks.register<Exec>("lyrelogSymbols") {
    commandLine("sh", "-c", "PATH=\"\$PATH:/opt/homebrew/bin:/usr/local/bin\" lyrelog symbols upload \"\$0\" -p tilefall || echo 'warning: Lyrelog symbols not uploaded'",
        layout.buildDirectory.get().asFile.path)
}
tasks.configureEach {
    if (name == "assembleRelease" || name == "bundleRelease") finalizedBy(lyrelogSymbols)
}

It uploads the release's R8 mapping and native libraries. The PATH line finds a CLI installed with Homebrew when Android Studio starts Gradle.

React Native on Android

React Native's android/app/build.gradle is Groovy:

def lyrelogSourceMaps = tasks.register("lyrelogSourceMaps", Exec) {
    commandLine "sh", "-c", "PATH=\"\$PATH:/opt/homebrew/bin:/usr/local/bin\" lyrelog sourcemaps upload \"\$0\" -p tilefall || echo 'warning: Lyrelog source map not uploaded'",
        layout.buildDirectory.get().asFile.path
}
tasks.configureEach {
    if (name == "assembleRelease" || name == "bundleRelease") finalizedBy(lyrelogSourceMaps)
}

A website's build

In package.json, right after the bundler:

{
  "scripts": {
    "build": "vite build && lyrelog sourcemaps inject dist && (lyrelog sourcemaps upload dist -p tilefall || echo 'warning: Lyrelog source maps not uploaded')"
  }
}

Deploy dist after build: inject changes the bundles, so the ones you deploy must be those.

A Flutter release

In the script that builds your release:

flutter build appbundle --obfuscate --split-debug-info=build/debug-info \
  --extra-gen-snapshot-options=--save-obfuscation-map=build/debug-info/obfuscation.map.json
lyrelog symbols upload build/debug-info -p tilefall || echo "warning: Lyrelog symbols not uploaded"

The same goes after flutter build ipa.

In CI

On GitHub Actions, install the CLI, then run the build with the token from your repository's secrets:

- name: Install the Lyrelog CLI
  run: |
    curl -fsSL https://github.com/lyrelog/lyrelog-cli/releases/download/v1.8.0/lyrelog_1.8.0_linux_amd64.tar.gz | tar -xz -C "$RUNNER_TEMP" lyrelog
    echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Build
  run: pnpm build
  env:
    LYRELOG_TOKEN: ${{ secrets.LYRELOG_TOKEN }}

On a macOS runner (an iOS build), brew install lyrelog/tap/lyrelog installs it instead. The releases page has the newest version and the builds for other systems.

Where they're kept

Symbols and source maps are kept with the project, encrypted, and deleted with it. They count against your organization's storage for them: 100 MB on Free, 1 GB on Pro, 10 GB on Business. A build no crash has used for a year is deleted. The project's settings list them, under Symbols and source maps, with the room they take and when a crash last needed each one; owners delete them there. From the terminal:

lyrelog symbols
lyrelog symbols delete A3F11B8C-0F44-3ABF-A3AA-25AC3AF39B8F

Deleting needs an owner. Its crashes show as sent again.