Skip to content

Debug Console doesn't add clickable links for stdout output line start with string different #number when using new Flutter SDK debug adapters #5360

@quyenvsp

Description

@quyenvsp

Describe the bug
Continue #4711 (comment)
Issue not resolved yet
new Flutter SDK debug adapters only handle stdout line start with #0 #1,...
all other lines start with any other strings like [log], flutter,... will not clickable

To Reproduce
Steps to reproduce the behavior:

  1. Use latest Flutter master channel create new project flutter create .
  2. Add example code in build method
    final stack = StackTrace.current.toString().split('\n').take(2).join('\n');
    final stack2 = '\n$stack';
    log(stack);
    debugPrint(stack);
    log(stack2);
    debugPrint(stack2);

Expected behavior
All line with stacktrace location should clickable even this line start with any string not #0, #1,...

Screenshots
2024-12-03_112937

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: Windows 11 Build 22635.4515
  • VS Code version: 1.95.3 (System setup)
  • Dart extension version: v3.102.3
  • Dart/Flutter SDK version: v3.102.3
  • Target device (if the issue relates to Flutter debugging):

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsin flutterRelates to running Flutter appsis 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