Skip to content

Breakpoints in web apps don't jump to any source #2784

Closed

Description

@DanTup

When running a (non-Flutter) web app like this (the delay is to avoid dart-lang/webdev#830):

void main() {
  querySelector('#output').text = 'Your Dart app is running.';
  // BREAKPOINT1^

  Future.delayed(const Duration(seconds: 5)).then((_) {
    // Breakpoint on the line below
    querySelector('#output').text = 'Delayed function has run!';
  });
}

When the breakpoint is hit, we don't jump to any code and the stack looks like this:

Screenshot 2020-09-10 at 14 47 03

VM service shows that we can get sources for at least one of these frames, even though we can't map it back to a local file (since it's an org-dartlang URI).

Activity

  1. added
    in webRelates to running Dart or Flutter web apps
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Sep 10, 2020
  2. added this to the v3.15.0 milestone on Sep 10, 2020
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

    in debuggingRelates to the debug adapter or process of running debug sessionsin webRelates to running Dart or Flutter web appsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions