Symbolication overview
This page documents Bugsee Flutter SDK 10.x, which is in beta (10.0.0-beta.1, a prerelease on pub.dev) and can change between betas. The stable release is 9.x: see the 9.x documentation. Upgrading? See Migrating from 9.x to 10.x.
A release build ships Dart code compiled ahead of time, Java and Kotlin code renamed by R8, and stripped native libraries. A crash or error from that build carries addresses and renamed symbols. To show your own file names, functions and lines, Bugsee needs the debug files of that exact build, uploaded when you build it. Without them the report is stored but its frames stay unreadable.
A Flutter app has up to four kinds of frames in one report, and each has its own debug file and its own upload.
What gets symbolicated
| Frames | Debug file | How it reaches Bugsee |
|---|---|---|
| Android Java and Kotlin | R8 mapping (mapping.txt) | Automatic. The Bugsee Gradle plugin uploads it on every minified release build (uploadBugsee<Variant>Mapping); a debug or custom build type needs bugsee { buildInfo { allBuildTypes.set(true) } }. The plugin needs the app token, or it skips the upload: see Symbolication: Android. |
Android native (libflutter.so, your own .so files) | Unstripped native libraries | Automatic once you turn it on: bugsee { ndk { enabled.set(true) } }. It covers non-debuggable builds only. |
Dart frames of a release build made with --split-debug-info (and --obfuscate) | build/symbols/*.symbols | Manual. Nothing in a Flutter build calls the Bugsee uploader, and bugsee-cli has no Flutter type yet. |
iOS native (the app, Flutter.framework) | The build's dSYMs | Manual in a Flutter app. A Run Script build phase that runs bugsee-cli xcode upload-dsyms, or an upload from CI. |
The Android Java and Kotlin mapping needs no setting at all once the Gradle plugin is applied, which the SDK requires anyway (see Installation).
The backend finds the symbols by the build, not by the app version. Keep the build/symbols folder, the dSYMs and the R8 mapping of every build that reaches users, and upload them before the first crash can arrive.
What is verified
| Piece | State |
|---|---|
| Android Java and Kotlin, R8 mapping | Verified on emulators: exceptions from a release build with R8 and --obfuscate. |
| Dart frames, Android arm64, Flutter 3.50 | Decoded by the backend's symbolizer when given the stack as the backend feeds it, see Symbolication: Dart. The upload of the symbols file through the production endpoint was not verified. |
| Dart frames, iOS | Not verified with a real device stack. A hand-written, header-less stack decoded against the symbols file of a release build. |
| iOS dSYMs | The setup comes from the Bugsee CLI documentation. It has not been measured with a Flutter build. |
| Native frames on Android | The build step is documented. Native crash symbolication needs a non-debuggable build with its libraries uploaded. |
Pages
- Symbolication: Android: the Gradle plugin, the R8 mapping and the native symbols.
- Symbolication: iOS: the dSYM upload phase.
- Symbolication: Dart:
--split-debug-info,--obfuscateand the symbols upload. - Crash and error reporting: how Dart errors reach Bugsee.