Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DanTup opened this issue Sep 10, 2020 · 0 comments
Closed

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

DanTup opened this issue Sep 10, 2020 · 0 comments
Labels
in debugger Relates to the debug adapter or process of launching a debug session in web Relates to running Dart or Flutter web apps is bug
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Sep 10, 2020

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).

@DanTup DanTup added is bug in web Relates to running Dart or Flutter web apps in debugger Relates to the debug adapter or process of launching a debug session labels Sep 10, 2020
@DanTup DanTup added this to the v3.15.0 milestone Sep 10, 2020
@DanTup DanTup closed this as completed in 3fb718e Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in debugger Relates to the debug adapter or process of launching a debug session in web Relates to running Dart or Flutter web apps is bug
Projects
None yet
Development

No branches or pull requests

1 participant