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

Debugging one isolate in multi-engine scenario #80456

Open
WunGCQ opened this issue Apr 14, 2021 · 3 comments
Open

Debugging one isolate in multi-engine scenario #80456

WunGCQ opened this issue Apr 14, 2021 · 3 comments
Labels
a: debugging Debugging, breakpoints, expression evaluation a: existing-apps Integration with existing apps via the add-to-app flow c: new feature Nothing broken; request for a new capability P2 Important issues not at the top of the work list team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team

Comments

@WunGCQ
Copy link

WunGCQ commented Apr 14, 2021

I'm using multiple flutter and try to connect to one of them, and i try to follow the link
debugging-specific-instances-of-flutter
but the command line tool can not work as the website.
anyone can help?

platform

OS: windows 10
Flutter 2.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b139559 (13 days ago) • 2021-04-01 14:25:01 -0700
Engine • revision 2dce470
Tools • Dart 2.12.2

Steps to Reproduce

  1. Run flutter attach --isolate-filter='debug'
PS D:\work\foo> flutter --version
Flutter 2.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b1395592de (13 days ago) • 2021-04-01 14:25:01 -0700
Engine • revision 2dce47073a
Tools • Dart 2.12.2

PS D:\work\foo> flutter attach --isolate-filter='debug'
Could not find an option named "isolate-filter".


Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
$flutter doctor -v
[√] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.867], locale zh-CN)
    • Flutter version 2.0.4 at D:\tools\flutter_windows_2.0.1-stable\flutter
    • Framework revision b1395592de (13 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\wungcq\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: D:\tools\AndroidStudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at D:\tools\AndroidStudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (3 available)
    • MIX 2 (mobile) • 6f7c29fd • android-arm64  • Android 9 (API 28)
    • Chrome (web)   • chrome   • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)     • edge     • web-javascript • Microsoft Edge 89.0.774.75

• No issues found!

@WunGCQ
Copy link
Author

WunGCQ commented Apr 14, 2021

i figured out that the PR (#63336)[https://github.com//pull/63336] REMOVE the l and isolate-filter command support.

I think this is not a good choice... when flutter 2 claimed that it support multiple engines, the debugging work will be a REALLY BIG PROBLEM.

and any one know how can I debug exactly to an selected isloate?

@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label Apr 15, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Apr 15, 2021

Hi @WunGCQ
Since it was removed, documentation needs an update and probably an alternative solution https://flutter.dev/docs/development/add-to-app/debugging#debugging-specific-instances-of-flutter

The documentation updated is needed in flutter/website, labeling the issue here so the tool team can track this and provide an updated solution for debugging Add to app

@TahaTesser TahaTesser added a: existing-apps Integration with existing apps via the add-to-app flow d: website - content tool Affects the "flutter" command-line tool. See also t: labels. and removed in triage Presently being triaged by the triage team labels Apr 15, 2021
@TahaTesser TahaTesser changed the title flutter attach cli tool with --isolate-filter and l command not work Update documentation for debugging specific instances in Add2App debugging docs Apr 15, 2021
@xster xster changed the title Update documentation for debugging specific instances in Add2App debugging docs Debugging one isolate in multi-engine scenario Apr 15, 2021
@xster xster added P2 Important issues not at the top of the work list c: new feature Nothing broken; request for a new capability and removed d: website - content labels Apr 15, 2021
@xster xster added this to Awaiting triage in Mobile - Add-to-app review via automation Apr 15, 2021
@xster
Copy link
Member

xster commented Apr 15, 2021

Repurposing the bug to make sure we have a proper debugging solution for targeting an isolate.

@TahaTesser TahaTesser added the a: debugging Debugging, breakpoints, expression evaluation label Apr 16, 2021
@flutter-triage-bot flutter-triage-bot bot added team-tool Owned by Flutter Tool team triaged-tool Triaged by Flutter Tool team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: debugging Debugging, breakpoints, expression evaluation a: existing-apps Integration with existing apps via the add-to-app flow c: new feature Nothing broken; request for a new capability P2 Important issues not at the top of the work list team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team
Projects
Mobile - Add-to-app review
  
Awaiting triage
Development

No branches or pull requests

4 participants