setPauseOnExceptions method

Future<void> setPauseOnExceptions(
  1. @Enum(['none', 'caught', 'uncaught', 'all']) String state
)

Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, or caught exceptions, no exceptions. Initial pause on exceptions state is none. state Pause on exceptions mode.

Implementation

Future<void> setPauseOnExceptions(
  @Enum(['none', 'caught', 'uncaught', 'all']) String state,
) async {
  assert(const ['none', 'caught', 'uncaught', 'all'].contains(state));
  await _client.send('Debugger.setPauseOnExceptions', {'state': state});
}