Skip to content

Debug toString() evaluates 11 values instead of 100 #4995

@pattobrien

Description

@pattobrien

Describe the bug
When running a program in debug mode, toString() only evaluates the first 11 values, rather than 100 as specified in the docs.

To Reproduce

  1. Override toString() with a custom toString method on a custom class (e.g. Token class)
  2. Create a list of 100 instances of Token and pause the debugger while the list of tokens are in scope.

Expected behavior
All 100 instances show the evaluated toString() value next to the list of each Token in the debugger.

Screenshots

Screenshot 2024-02-19 at 2 24 52 PM

Environment info

Workspace Environment
Dart Code extension: 3.83.20240207
Flutter extension: 3.83.20240201 (activated)

App: Visual Studio Code
App Host: desktop
Version: mac 1.86.2

Workspace type: Dart (LSP)

Dart (3.3.0): /Users/pattobrien/.fvm/versions/stable/bin/cache/dart-sdk
Flutter (3.19.0): /Users/pattobrien/.fvm/versions/stable (No device)

Output from 'dart info'

/Users/pattobrien/.fvm/versions/stable/bin/cache/dart-sdk/bin/dart info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.3.0 (stable) (Tue Feb 13 10:25:19 2024 +0000) on "macos_arm64"
  • on macos / Version 13.5.2 (Build 22G91)
  • locale is en-US

Project info

  • sdk constraint: '^3.3.0'
  • dependencies: antlr4, code_builder, collection, dart_style, dio, file, petitparser
  • dev_dependencies: lints, test
  • elided dependencies: 1

Process info

Memory CPU Elapsed time Command line
34 MB 0.0% 34:31 dart --enable-vm-service=0 --pause_isolates_on_start --disable-dart-dev -DSILENT_VM_SERVICE=true --write-service-info=file:/vm.json --pause_isolates_on_exit --enable-asserts /main_custom_scanner.dart
24 MB 0.0% 34:31 dart debug_adapter
312 MB 0.0% 36:13 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.83.20240207
6 MB 0.0% 06-20:05:43 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.83.20240207
8 MB 0.0% 06-20:04:39 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.83.20240207
249 MB 0.0% 10:25 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.83.20240207
236 MB 0.0% 38:53 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.83.20240207

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