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);
  await appDebugServices.chromeProxyService.isInitialized;
  return DebugConnection(appDebugServices);
}