Skip to content

Strings in debugger are truncated in fields but not in the parent objects toString() representation #4986

@benji-farquhar

Description

@benji-farquhar

The image shows the variable in watch, console, local debugger, and tooltip.

Screenshot 2024-02-15 at 07 56 55

"Copy value" shows:

"/Users/benjaminfarquhar/Library/Developer/CoreSimulator/Devices/F56DA440-80AE-494E-A141-4EB263A9FF4F/data/Containers/Data/Applic…"

Interestingly, the grey text in the debug variables is not truncated. So you can see the whole value if you hover over file.value, it shows the File which seems to contain the path inline inside the File. But I think if the variable was a primitive String (not a String within a File) it would be impossible to see the whole value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bugrelies 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