-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: debuggingDebugging, breakpoints, expression evaluationDebugging, breakpoints, expression evaluationa: desktopRunning on desktopRunning on desktopa: qualityA truly polished experienceA truly polished experiencefound in release: 1.22Found to occur in 1.22Found to occur in 1.22found in release: 1.23Found to occur in 1.23Found to occur in 1.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work ontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Milestone
Description
Most debugging flags are discarded when targeting desktop. A complete list of such flags can be found here.
This makes it super annoying to debug low-level issues like those with Skia. The fact that no warning is emitted also wasted much of my time figuring out why the flags don't work.
In addition to the CLI discarding the flags, the engine also refuses to accept such flags, at least on Linux. Flutter engine already has a parser for command line option, so this shouldn't be too hard to fix.
Related: #52676
Proposed fix
- Make the Linux accept options related to Flutter, not only options for GTK. Same applies for other desktop platforms.
- Add logic for passing the debugging options to
DesktopDevice.startApp
Steps to Reproduce
- Run
flutter create bug. - Configure application to run on Linux.
flutter run --trace-skia -d linux
Expected results: Skia Trace events should be emitted.
Actual results: No such events are actually emitted.
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: debuggingDebugging, breakpoints, expression evaluationDebugging, breakpoints, expression evaluationa: desktopRunning on desktopRunning on desktopa: qualityA truly polished experienceA truly polished experiencefound in release: 1.22Found to occur in 1.22Found to occur in 1.22found in release: 1.23Found to occur in 1.23Found to occur in 1.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work ontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.