Add --serve-observatory flag to run, attach, and test (#118402)
This flag will allow for Observatory to be served by the VM service once it is disabled by default in the Dart SDK.
This commit is contained in:
@@ -458,6 +458,14 @@ abstract class FlutterCommand extends Command<void> {
|
||||
);
|
||||
}
|
||||
|
||||
void addServeObservatoryOptions({required bool verboseHelp}) {
|
||||
argParser.addFlag('serve-observatory',
|
||||
hide: !verboseHelp,
|
||||
defaultsTo: true,
|
||||
help: 'Serve the legacy Observatory developer tooling through the VM service.',
|
||||
);
|
||||
}
|
||||
|
||||
late final bool enableDds = () {
|
||||
bool ddsEnabled = false;
|
||||
if (argResults?.wasParsed('disable-dds') ?? false) {
|
||||
|
||||
Reference in New Issue
Block a user