Skip to content

Unverified breakpoints running web in a workspace #5387

Closed

Description

@TijlIvens

Describe the bug
When running flutter in web inside a workspace, the breakpoints keep being unverified
It's not possible to debug with breakpoints

To Reproduce
Create a dart workspace with 2 flutter projects
Run a project in web
Add a breakpoint
The breakpoint will stay unverified

Expected behavior
Breakpoints should work the same in a workspace as in a normal project

  • Operating System and version: macOS 15.1.1 (24B91)
  • VS Code version: 1.96.2
  • Dart extension version: 3.102.0
  • Dart/Flutter SDK version: 3.6.0 / 3.27.1
  • Target device (if the issue relates to Flutter debugging): Chrome 131.0.6778.205

Activity

  1. DanTup commented on Jan 13, 2025

    @DanTup
    Member

    I don't seem to be able to reproduce this:

    image

    Here's what I did (using Flutter 3.27.1):

    • mkdir dartcode_5387
    • cd dartcode_5387
    • flutter create app1
    • flutter create app2
    • code .
    • opened app1/lib/main.dart
    • selected the Chrome device from the status bar
    • added a breakpoint to the _counter++; line
    • pressed F5 to run

    The breakpoint was grey (unverified) while compilation occured, but once the app loaded, it turned red (and subsequently, I could trigger it).

    If you see different, can you provide exact steps for what you're doing, and also confirm whether the breakpoint is hit or not if you force the code to be executed?

    Thanks!

  2. added
    awaiting infoRequires more information from the customer to progress
    on Jan 13, 2025
  3. TijlIvens commented on Jan 13, 2025

    @TijlIvens
    Author

    Hey, thnx for the response

    I was using the new workspaces feature introduced in dart 3.6.0
    I created this repo with the setup:
    https://github.com/TijlIvens/flutter_with_wokspace
    Just run: flutter pub get in the root
    Select Chrome device from the status bar
    Add a breakpoint to the _counter++; line
    Press F5 To launch from the root

  4. DanTup commented on Jan 22, 2025

    @DanTup
    Member

    Ah, thanks - I can repro now. I've filed dart-lang/webdev#2575 since this looks like an issue in DWDS. I'll keep this one open for now until there's a response there.

  5. added
    in webRelates to running Dart or Flutter web apps
    in debuggingRelates to the debug adapter or process of running debug sessions
    and removed
    awaiting infoRequires more information from the customer to progress
    on Jan 22, 2025
  6. added this to the v3.106.0 milestone on Jan 22, 2025
  7. modified the milestones: v3.106.0, v3.108.0 on Feb 10, 2025
  8. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    and removed on Feb 12, 2025
  9. modified the milestones: v3.108.0, v3.106.0 on Feb 12, 2025
  10. DanTup commented on Feb 12, 2025

    @DanTup
    Member

    A fix for this has landed in Flutter and will be included in a future SDK release.

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

    fixed in dart / flutterin debuggingRelates to the debug adapter or process of running debug sessionsin webRelates to running Dart or Flutter web 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