Skip to content

flutter test should support flag '--debug' #127331

Description

@polina-c

Sometimes tests need to be run in debug mode, i.e. with vm available.
It is not for debugging, but for memory troubleshooting, for example, to get retaining paths for non GCed objects.

I can run dart test --debug, but it is not available for flutter.

Right now the only flag that sets debug mode for flutter testing is --start-paused, but it requires a debugger to be connected, that is inconvenient.

It is needed to serve this PR: dart-lang/leak_tracker#63

Activity

  1. added
    in triagePresently being triaged by the triage team
    a: tests"flutter test", flutter_test, or one of our tests
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on May 23, 2023
  2. polina-c commented on May 25, 2023

    @polina-c
    ContributorAuthor
  3. added
    P3Issues that are less important to the Flutter project
    triaged-toolTriaged by Flutter Tool team
    on Jul 19, 2023
  4. polina-c commented on Jul 31, 2023

    @polina-c
    ContributorAuthor

    It seems I can kick off the service programmatically with await Service.controlWebServer(enable: true, silenceOutput: true);, if I need it.

    So, this stopped being blocker.

  5. github-actions commented on Aug 15, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Aug 15, 2023
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

    P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterr: solvedIssue is closed as solvedteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions