Skip to content

Most Debugging Options are discarded for desktop #66532

@ishitatsuyuki

Description

@ishitatsuyuki

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

  1. Make the Linux accept options related to Flutter, not only options for GTK. Same applies for other desktop platforms.
  2. Add logic for passing the debugging options to DesktopDevice.startApp

Steps to Reproduce

  1. Run flutter create bug.
  2. Configure application to run on Linux.
  3. 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 projecta: debuggingDebugging, breakpoints, expression evaluationa: desktopRunning on desktopa: qualityA truly polished experiencefound in release: 1.22Found to occur in 1.22found in release: 1.23Found to occur in 1.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work ontoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions