Skip to content

Debug Mode ​

The MainViewController.swift file contains a static debugMode variable that controls development features. This setting affects console verbosity, web view inspection capabilities, and JavaScript debugging.

Features Enabled in Debug Mode ​

When debugMode is set to true:

  • Xcode console outputs more verbose information
  • Web views are set to inspectable mode, allowing inspection via Safari developer tools
  • The global JavaScript variable __DEBUG_MODE__ is set to true, enabling verbose logging in the JavaScript console

Default Configuration ​

By default, debugMode is set to true to facilitate development.

DANGER

Set debugMode to false before deploying to production environments.

Important Security Warning ​

Failure to disable debug mode in production can lead to:

  • Unauthorized inspection of web views by users
  • Potential exposure of sensitive information and application secrets
  • Security vulnerabilities that could compromise your application