Skip to content
pubscout

tracex

1.4.4, released 9 days ago by an unverified publisher

In-app debugging console and network monitor for Flutter applications.

WASM-ready
$ flutter pub add tracex
Source repository

What it does

TraceX provides an in-app debugging console, network traffic inspector, and pretty logger for Flutter applications. It lets developers monitor API calls, search and filter logs, inspect JSON bodies, and display a customizable floating action button directly inside their app.

AI-written summary of version 1.4.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an in-app console to view logs and network traffic directly on mobile or desktop devices during testing.
  • You want to inspect HTTP requests and responses using Dio or custom clients with support for pretty logging and JSON viewing.

Skip it when

  • You require production-level crash reporting and remote analytics without relying on an in-app interface.
  • Your application runs headless or doesn't support UI-based debugging overlays.

Strengths

  • Includes a built-in network inspector and Dio interceptor.
  • Features an interactive JSON tree viewer with search and lazy rendering.
  • Customizable floating action button with auto-stash capability.

Weaknesses

  • Limited to in-app visual debugging rather than long-term cloud log aggregation.
  • Requires manual initialization and widget tree attachment.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Initialize TraceX, attach it to the context in debug mode, and add the Dio interceptor if using network monitoring.

final TraceX tracex = TraceX(
  logger: TraceXPrettyLogger(
    enabled: kDebugMode,
    compact: true,
  ),
);

tracex.attach(
  context: context,
  visible: kDebugMode,
);

Alternatives

Packages that do the same job and could replace tracex.

  • talker

    Provides a comprehensive advanced exception handling and logging package with an in-app UI and many plugins.

  • pretty_dio_logger

    Specializes specifically in logging Dio network requests directly to the console output.

Works with

Packages commonly used together with tracex: ones it builds on, ones built on it, and its own family.