Skip to content

Web version of devtools cannot display 64-bit numbers from typed data instances #2159

Description

@jonahwilliams

For typed data instances, the VM service will return the byte contents encoded as a base64 String. In order to display a meaningful value in the debugger, this must be decoded and then converted to the appropriate typed data instance. For example, -1 will need to display as 0xFF if the typed data instance was unsigned.

This poses a problem for Unit64List and int64List, since these types cannot be instantiated on the web.

One potential solution would be to pull in fixnum and manually unmarshal Int64 numbers into a string representation - though that would not help the unsigned case. Another approach would be to write a utility based off of fixnum to handle both.

Activity

  1. added this to the Backlog milestone on Jul 7, 2020
  2. added
    P3issues we think are valid but not important
    on Sep 27, 2024
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

    P3issues we think are valid but not importantdevtools-debugger-screenIssues with the Debugger screen

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions