@@ -21,7 +21,6 @@ import '../convert.dart';
2121import  '../device.dart' ;
2222import  '../globals.dart'  as  globals;
2323import  '../project.dart' ;
24- import  '../resident_runner.dart' ;
2524import  '../vmservice.dart' ;
2625
2726import  'font_config_manager.dart' ;
@@ -73,7 +72,6 @@ class FlutterTesterTestDevice extends TestDevice {
7372
7473  Process ?  _process;
7574  HttpServer ?  _server;
76-   DevtoolsLauncher ?  _devToolsLauncher;
7775
7876  /// Starts the device. 
7977  /// 
@@ -165,11 +163,9 @@ class FlutterTesterTestDevice extends TestDevice {
165163            debuggingOptions.hostVmServicePort ==  detectedUri.port);
166164
167165        Uri ?  forwardingUri;
168-         DartDevelopmentService ?  dds;
169- 
170166        if  (debuggingOptions.enableDds) {
171167          logger.printTrace ('test $id : Starting Dart Development Service' );
172-           dds =  await  startDds (
168+           final   DartDevelopmentService   dds =  await  startDds (
173169            detectedUri,
174170            uriConverter:  uriConverter,
175171          );
@@ -197,10 +193,10 @@ class FlutterTesterTestDevice extends TestDevice {
197193        }));
198194
199195        if  (debuggingOptions.startPaused &&  ! machine! ) {
200-           logger.printStatus ('The Dart VM service is listening on $ forwardingUri ' );
201-           await   _startDevTools (forwardingUri, dds );
202-           logger.printStatus ('' );
203-           logger.printStatus ('The test process has been started. Set any relevant  breakpoints and  then resume the test in the debugger.' );
196+           logger.printStatus ('The test process has been started. ' );
197+           logger. printStatus ( 'You can now connect to it using vmService. To connect, load the following Web site in your browser:' );
198+           logger.printStatus ('  $ forwardingUri ' );
199+           logger.printStatus ('You should first set appropriate  breakpoints,  then resume the test in the debugger.' );
204200        }
205201        _gotProcessVmServiceUri.complete (forwardingUri);
206202      },
@@ -219,9 +215,6 @@ class FlutterTesterTestDevice extends TestDevice {
219215    logger.printTrace ('test $id : Terminating flutter_tester process' );
220216    _process? .kill (io.ProcessSignal .sigkill);
221217
222-     logger.printTrace ('test $id : Shutting down DevTools server' );
223-     await  _devToolsLauncher? .close ();
224- 
225218    logger.printTrace ('test $id : Shutting down test harness socket server' );
226219    await  _server? .close (force:  true );
227220    await  finished;
@@ -268,29 +261,6 @@ class FlutterTesterTestDevice extends TestDevice {
268261    );
269262  }
270263
271-   Future <void > _startDevTools (Uri  forwardingUri, DartDevelopmentService ?  dds) async  {
272-     _devToolsLauncher =  DevtoolsLauncher .instance;
273-     logger.printTrace ('test $id : Serving DevTools...' );
274-     final  DevToolsServerAddress ?  devToolsServerAddress =  await  _devToolsLauncher? .serve ();
275- 
276-     if  (devToolsServerAddress ==  null ) {
277-       logger.printTrace ('test $id : Failed to start DevTools' );
278-       return ;
279-     }
280-     await  _devToolsLauncher? .ready;
281-     logger.printTrace ('test $id : DevTools is being served at ${devToolsServerAddress .uri }' );
282- 
283-     // Notify the DDS instance that there's a DevTools instance available so it can correctly 
284-     // redirect DevTools related requests. 
285-     dds? .setExternalDevToolsUri (devToolsServerAddress.uri! );
286- 
287-     final  Uri  devToolsUri =  devToolsServerAddress.uri! .replace (
288-       // Use query instead of queryParameters to avoid unnecessary encoding. 
289-       query:  'uri=$forwardingUri ' ,
290-     );
291-     logger.printStatus ('The Flutter DevTools debugger and profiler is available at: $devToolsUri ' );
292-   }
293- 
294264  /// Binds an [HttpServer]  serving from `host`  on `port` . 
295265  /// 
296266  /// Only intended to be overridden in tests. 
0 commit comments