Skip to content

Stack trace context #127

@mgalgs

Description

@mgalgs

Do I need to do anything to be able to see context (local variables, etc) in my Flutter stack traces? Currently it always says No context to show!

image

This is how I'm initializing Rollbar in my app:

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  PackageInfo packageInfo = await PackageInfo.fromPlatform();

  var config = Config(
    accessToken: '...',
    package: '...',
    codeVersion: packageInfo.version,
    handleUncaughtErrors: true,
    includePlatformLogs: true,
  );

  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );

  await RollbarFlutter.run(config, () => runApp(MyApp()));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions