setBreakOnCSPViolation method

Future<void> setBreakOnCSPViolation(
  1. List<CSPViolationType> violationTypes
)

Sets breakpoint on particular CSP violations. violationTypes CSP Violations to stop upon.

Implementation

Future<void> setBreakOnCSPViolation(
    List<CSPViolationType> violationTypes) async {
  await _client.send('DOMDebugger.setBreakOnCSPViolation', {
    'violationTypes': [...violationTypes],
  });
}