Coder Social home page Coder Social logo

dart-lang / source_map_stack_trace Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 7.0 112 KB

Convert stack traces generated by dart2js-compiled code into readable native Dart stack traces

Home Page: https://pub.dev/packages/source_map_stack_trace

License: BSD 3-Clause "New" or "Revised" License

Dart 100.00%

source_map_stack_trace's People

Contributors

athomas avatar chalin avatar dependabot[bot] avatar devoncarew avatar franklinyow avatar jacob314 avatar jakemac53 avatar kevmoo avatar natebosch avatar nex3 avatar pq avatar srawlins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

source_map_stack_trace's Issues

How to use with stack_trace

Is it possible to use source_map_stack_trace with a Trace parsed from stack_trace? Here's my use case:

  1. In Dartium, (and when the app is running in debug-mode,) use Chain.capture() to print the asynchronous stack chain.
  2. In other browsers, use the source map and source_map_stack_trace to convert the trace to a native-looking stack trace.
  3. In other browsers, when the app is in debug-mode, do both #1 and #2 to get a native-looking stack chain.

Side note: When we build our application, we use --mode=release but our pubspec sets sourceMaps to true for the dart2js transformer:

Here's an example project that attempts to do this. Note that the output in Chrome doesn't seem to be doing the right thing.

@nex3

Dependency on dart:mirrors?

Hello,
I use this library in my web application to de-minify the stacktraces of some uncaught exceptions.

Since the version 1.1.0, the dart2js compiler reports a warning because of a dependency on dart:mirrors with:
package:source_map_stack_trace => package:package_resolver => package:http => dart:mirrors

Is it possible to provide a mirrors-free version of this package?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.