Skip to content

In Flutter 3.32.5 running on the web-server does not attach the debugger to the session #171221

@MsYoda

Description

@MsYoda

Steps to reproduce

  1. Upgrade flutter to 3.32.5
  2. Install the Dart Debug Extension for Chrome Dart Debug Extension
  3. Create counter app with flutter create .
  4. Run app with this command
flutter run -d web-server --web-port=8080

Expected results

The app initially displays a white screen and remains unresponsive until the Dart Debug Extension is manually enabled in Chrome.
Once the extension is enabled, the app resumes normal execution, and logs begin appearing in the terminal.

This behavior was observed using Flutter 3.29.3.

Actual results

The app skips the step of waiting for the Dart Debug Extension to be enabled—it starts running right away, but no logs are shown in the terminal. Instead, I only see the following message in terminal:

Waiting for connection from Dart debug extension at http://localhost:8080
The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.

And this one in Chrome Dev tools console:

registerExtension() from dart:developer is only supported in build/run/test environments where the developer event method hooks have been set by package:dwds v11.1.0 or higher.
_registerExtension @ developer_patch.dart:96

App starts normally, but debugger is not attached

Code sample

Not needed

Screenshots or Video

Logs

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.32.5, on macOS 15.4 24E248 darwin-arm64, locale en-PL) [365ms]
    • Flutter version 3.32.5 on channel stable at /opt/homebrew/Caskroom/flutter/3.29.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fcf2c11572 (2 days ago), 2025-06-24 11:44:07 -0700
    • Engine revision dd93de6fb1
    • Dart version 3.8.1
    • DevTools version 2.45.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions