Debug Settings Scheme¶
The DebugSettings
is helping to manage and troubleshoot the SDK's behavior. It provides a set of options that control logging and validation policies, ensuring that the SDK operates smoothly and any issues can be quickly identified and resolved.
Debug Settings¶
DebugSettings {
isLoggingEnabled: Bool // (1)!
emptyStringsPolicy: ValidationPolicy // (2)!
unavailableResourcesPolicy: ValidationPolicy // (3)!
infoPlistDescriptionsPolicy: ValidationPolicy // (4)!
listSizePolicy: ValidationPolicy // (5)!
}
- Controls whether the SDK should log debug information, providing detailed logs to help developers understand its behavior.
- Validation policy for checking whether required strings in the SDK configuration are not empty, preventing runtime issues.
- Validation policy for checking whether required resources are available and properly configured.
- Validation policy for checking whether the
info.plist
file contains all required descriptions for enabled features. - Validation policy for checking whether lists required by the SDK are of the correct size.
Validation Policy¶
enum ValidationPolicy {
ignore // (1)!
warning // (2)!
fatal // (3)!
}
- Ignores all validation errors, allowing the SDK to proceed without taking any action.
- Logs validation errors to the console for debugging purposes without interrupting execution.
- Stops the application's execution with a fatal error when validation errors occur.
The ValidationPolicy
enum defines the severity of validation checks, determining whether errors are ignored, logged as warnings, or treated as fatal, halting execution.