Skip to content

print() statements in Flutter are truncated in flutter run output #22665

@DanTup

Description

@DanTup

Originally raised at Dart-Code/Dart-Code#1223 by @rajeshzmoke. If you print() a long string in Flutter, it gets truncated with <…> in the flutter run output:

void main() {
  print('a' * 100 + 'b' * 100 + 'c' * 100 + 'd' * 100 + 'e' * 100 + 'f' * 100 +
      'g' * 100 + 'h' * 100 + 'i' * 100 + 'j' * 100 + 'k' * 100);
  runApp(const GalleryApp());
}

screen shot 2018-10-04 at 10 55 44 am

I'm using the iOS Simulator - it's possible this is a limitation of how we're reading the logs from the device, I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions