Skip to content

Improve rendering of Uint8List (and friends) in the debugger #4213

Closed

Description

@DanTup
final a = [1, 2, 3, 4, 5, 6];
final b = Uint8List.fromList(a);
final c = Uint16List.fromList(a)

List a looks like a list, but the others do not:

Screenshot 2022-10-11 at 14 36 05

In the VM Service traffic, we can see the item has a length: 6 so we might be able to present it the same as a standard List:

Screenshot 2022-10-11 at 14 39 53

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Oct 11, 2022
  2. added this to the v3.52.0 milestone on Oct 11, 2022
  3. DanTup commented on Oct 11, 2022

    @DanTup
    MemberAuthor

    Fixed with https://dart-review.googlesource.com/c/sdk/+/263620 in the new DAPs.

    Screenshot 2022-10-11 at 17 15 48

    Since this change is in the SDK, it'll show up in an SDK update.

  4. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Oct 11, 2022
  5. DanTup commented on Oct 18, 2022

    @DanTup
    MemberAuthor

    Fixed by dart-lang/sdk@ae352fe. This will ship in an upcoming SDK release and applies to the new debug adapters (which will roll out progressively, but can be opted-in with "dart.previewSdkDaps": true in VS Code settings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions