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

Unable to figure out how to resume a Dart process that has been paused on isolate start/end #8789

Open
a-siva opened this issue Jan 17, 2025 · 3 comments

Comments

@a-siva
Copy link

a-siva commented Jan 17, 2025

When I start a dart process with the --observe option, I see the following message on my console

vm-service: isolate(1724937471817639) 'main' has no debugger attached and is paused at exit. Connect to the Dart VM service at http://127.0.0.1:37863/xyAvpbmSkDM=/ to debug.

I connect to http://127.0.0.1:37863/xyAvpbmSkDM=/ using my browser and it brings up devtools. Once here I don't see anyway to resume
the process. I searched under VM Tools and did not find any way of resuming the process there too.
There used to be a debugger tab in the past from where it was possible to issue the continue command but this does not seem to exist anymore.

@kenzieschmoll
Copy link
Member

How are you running your Dart app? I cannot reproduce by running dart --observe run foo.dart and then opening the DevTools link.

Copy link

github-actions bot commented Feb 1, 2025

Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution!

@github-actions github-actions bot closed this as completed Feb 1, 2025
@a-siva
Copy link
Author

a-siva commented Feb 4, 2025

Sorry for the late response on the reproduction instructions.

I was working on a debug build of the dart sdk when I ran into this problem, maybe this is not an issue for the end users.
Here is the list of steps for reproducing.

  1. build a debug version of the dart sdk using tools/build.py create_sdk
  2. build an aot snapshot as follows dart compile aot-snapshot -o /tmp/hello.aot /tmp/hello.dart
  3. run the generated aot snapshot as follows out/DebugX64/dart-sdk/bin/aotsnapshot --observe /tmp/hello.aot
  4. Now connect to url printed above and that launches devtools which does not have the debugger tab

I feel a similar reproduction should be possible with the flutter profile build.

Contents of /tmp/hello.dart

import 'dart:io';

main() {
  for (int i = 0; i < 500; i++) {
    print('Hello World!');
    sleep(Duration(seconds: 1));
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants