debugConnection method

Future<DebugConnection> debugConnection(
  1. AppConnection appConnection
)

Implementation

Future<DebugConnection> debugConnection(AppConnection appConnection) async {
  if (!_enableDebugging) throw StateError('Debugging is not enabled.');
  final appDebugServices = await _devHandler.loadAppServices(appConnection);
  final chromeProxyService = appDebugServices.chromeProxyService;
  await chromeProxyService.isInitialized;
  return DebugConnection(appDebugServices);
}