Repository navigation
flutter test should support flag '--debug' #127331
Copy link
Copy link
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterr: solvedIssue is closed as solvedIssue is closed as solvedteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teama: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on May 23, 2023 The issue makes memory leak troubleshooting inconvenient: https://github.com/dart-lang/leak_tracker/blob/main/doc/TROUBLESHOOT.md#verify-object-references
- addedteam-toolOwned by Flutter Tool teamOwned by Flutter Tool team
on Jul 8, 2023 - addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecttriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
on Jul 19, 2023 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.
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 -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Aug 15, 2023
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterr: solvedIssue is closed as solvedIssue is closed as solvedteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
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