stack_trace 1.11.1 stack_trace: ^1.11.1 copied to clipboard
A package for manipulating stack traces and printing them readably.
import 'dart:async';
import 'package:stack_trace/stack_trace.dart';
void main() {
Chain.capture(_scheduleAsync);
}
void _scheduleAsync() {
Future.delayed(const Duration(seconds: 1)).then((_) => _runAsync());
}
void _runAsync() {
throw 'oh no!';
}