Skip to content

Build Modes

Every build Primio produces runs in one of two modes: Release or Debug. You can set the mode independently for each platform — so you can debug your Android build while keeping Web and iOS on Release.

The setting lives in Workspace → Build Mode.

Release (default)Debug
PurposeProduction-ready buildsTroubleshooting issues
Code optimizationMinified and tree-shakenUnoptimized, full source
AssertionsRemovedEnabled
LoggingMinimalVerbose, detailed errors
DevToolsNot availableSupported
PerformanceFast, small file sizeSlower, larger file size
App store ready?YesNo

All platforms default to Release. You should only switch to Debug when you need to investigate a specific issue.

Debug mode is a troubleshooting tool, not a development mode. Use it when:

  • Your app crashes on a real device but works in the preview
  • You need detailed error messages or stack traces from a native build
  • You want to inspect app behavior using Flutter DevTools

Once you’ve identified and fixed the issue, switch back to Release before building for distribution.

  1. Open Build Mode

    Go to Workspace → Build Mode. You’ll see all five platforms listed.

  2. Toggle the mode

    Click Debug or Release next to the platform you want to change. The change takes effect on your next build for that platform.

  3. Build as usual

    Go to Workspace → Publish and start your build. Debug builds show an amber DEBUG badge in the build history so you can tell them apart.

You can set build mode independently for each platform:

  • Web Preview — the live preview in your workspace
  • Web Publish — free PWA hosting
  • Web Export — downloadable PWA source files
  • Android — APK and AAB builds
  • iOS — IPA builds