FLUTTER ECOSYSTEM

source_map_stack_trace

A package for applying source maps to stack traces.

Latest version
2.1.2
30-day downloads
5.4M
Likes
14
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A Dart package that enhances stack traces by applying source maps, making debugging easier by mapping minified or compiled code back to original source locations. It is particularly useful in development and testing environments where code is transformed (e.g., via compilation or bundling). The package integrates seamlessly with Dart's tooling and supports all major platforms, including web and mobile. It helps developers identify the exact lines of original source code that caused errors, improving the debugging experience.

Use cases
  • Debugging minified code
  • Improving error trace readability
  • Development-time error analysis
  • Cross-platform debugging
  • Integrating with build tools
  • Enhancing test output clarity
Key features
  • Applies source maps to stack traces
  • Supports all Dart platforms
  • Seamless integration with Dart tooling
  • Maps compiled code to original sources
  • Improves developer productivity
  • Lightweight and dependency-free
Suitable for
  • Dart developers
  • Frontend and backend engineers
  • Test automation teams
  • Build system maintainers
  • Tools and framework authors
  • Debugging complex applications
Considerations
  • Not needed in production builds
  • Requires source map files
  • Best used during development
  • May increase startup overhead slightly
  • Depends on correct source map generation
  • Limited utility without compiled code
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add source_map_stack_trace

Categories

Source repository

Related projects