stack_trace 1.6.8 stack_trace: ^1.6.8 copied to clipboard
A package for manipulating stack traces and printing them readably.
1.6.8 #
- Add a note to the documentation of
Chain.terse
andTrace.terse
.
1.6.7 #
- Fix a bug where
new Frame.caller()
returned the wrong depth of frame on Dartium.
1.6.6 #
new Trace.current()
andnew Chain.current()
now skip an extra frame when run in a JS context. This makes their return values match the VM context.
1.6.5 #
- Really fix strong mode warnings.
1.6.4 #
- Fix a syntax error introduced in 1.6.3.
1.6.3 #
- Make
Chain.capture()
generic. Its signature is nowT Chain.capture<T>(T callback(), ...)
.
1.6.2 #
- Fix all strong mode warnings.
1.6.1 #
- Use
StackTrace.current
in Dart SDK 1.14 to get the current stack trace.
1.6.0 #
-
Add a
when
parameter toChain.capture()
. This allows capturing to be easily enabled and disabled based on whether the application is running in debug/development mode or not. -
Deprecate the
ChainHandler
typedef. This didn't provide any value over directly annotating the function argument, and it made the documentation less clear.
1.5.1 #
- Fix a crash in
Chain.foldFrames()
andChain.terse
when one of the chain's traces has no frames.
1.5.0 #
-
new Chain.parse()
now parses all the stack trace formats supported bynew Trace.parse()
. Formats other than that emitted byChain.toString()
will produce single-element chains. -
new Trace.parse()
now parses the output ofChain.toString()
. It produces the same result asChain.parse().toTrace()
.
1.4.2 #
- Improve the display of
data:
URIs in stack traces.
1.4.1 #
- Fix a crashing bug in
UnparsedFrame.toString()
.
1.4.0 #
-
new Trace.parse()
and related constructors will no longer throw an exception if they encounter an unparseable stack frame. Instead, they will generate anUnparsedFrame
, which exposes no metadata but preserves the frame's original text. -
Properly parse native-code V8 frames.
1.3.5 #
- Properly shorten library names for pathnames of folded frames on Windows.
1.3.4 #
- No longer say that stack chains aren't supported on dart2js now that sdk#15171 is fixed. Note that this fix only applies to Dart 1.12.
1.3.3 #
-
When a
null
stack trace is passed to a completer or stream controller in nestedChain.capture()
blocks, substitute the inner block's chain rather than the outer block's. -
Add support for empty chains and chains of empty traces to
Chain.parse()
. -
Don't crash when parsing stack traces from Dart VM stack overflows.
1.3.2 #
- Don't crash when running
Trace.terse
on empty stack traces.
1.3.1 #
- Support more types of JavaScriptCore stack frames.
1.3.0 #
- Support stack traces generated by JavaScriptCore. They can be explicitly
parsed via
new Trace.parseJSCore
andnew Frame.parseJSCore
.
1.2.4 #
- Fix a type annotation in
LazyTrace
.
1.2.3 #
- Fix a crash in
Chain.parse
.
1.2.2 #
-
Don't print the first folded frame of terse stack traces. This frame is always just an internal isolate message handler anyway. This improves the readability of stack traces, especially in stack chains.
-
Remove the line numbers and specific files in all terse folded frames, not just those from core libraries.
-
Make padding consistent across all stack traces for
Chain.toString()
.
1.2.1 #
-
Add
terse
toLazyTrace.foldFrames()
. -
Further improve stack chains when using the VM's async/await implementation.
1.2.0 #
- Add a
terse
argument toTrace.foldFrames()
andChain.foldFrames()
. This allows them to inherit the behavior ofTrace.terse
andChain.terse
without having to duplicate the logic.
1.1.3 #
- Produce nicer-looking stack chains when using the VM's async/await implementation.
1.1.2 #
-
Support VM frames without line or column numbers, which async/await programs occasionally generate.
-
Replace
<<anonymous closure>_async_body>
in VM frames' members with the terser<async>
.
1.1.1 #
- Widen the SDK constraint to include 1.7.0-dev.4.0.
1.1.0 #
-
Unify the parsing of Safari and Firefox stack traces. This fixes an error in Firefox trace parsing.
-
Deprecate
Trace.parseSafari6_0
,Trace.parseSafari6_1
,Frame.parseSafari6_0
, andFrame.parseSafari6_1
. -
Add
Frame.parseSafari
.
1.0.3 #
- Use
Zone.errorCallback
to attach stack chains to all errors without the need forChain.track
, which is now deprecated.
1.0.2 #
- Remove a workaround for issue 17083.
1.0.1 #
- Synchronous errors in the [Chain.capture] callback are now handled correctly.
1.0.0 #
- No API changes, just declared stable.
0.9.3+2 #
-
Update the dependency on path.
-
Improve the formatting of library URIs in stack traces.
0.9.3+1 #
- If an error is thrown in
Chain.capture
'sonError
handler, that error is handled by the parent zone. This matches the behavior ofrunZoned
indart:async
.
0.9.3 #
-
Add a
Chain.foldFrames
method that parallelsTrace.foldFrames
. -
Record anonymous method frames in IE10 as "