Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
Some pages are still pending proper formatting, if required refer to the legacy documentation website.
FaxStore IconFaxStore

Weblutions Documentation / FaxStore / Developer Mode

Updated

Developer Mode

By Josh M. 1 mins 5

FaxStore comes with a built-in developer mode to make ease of testing transactions and functions created via extensions. Developer mode can be enabled through the configuration file and makes fatal errors crash FaxStore rather than generate an error log which is especially useful when squashing bugs from development.

The main changes developer mode makes are:

  • Payments will use sandbox APIs with PayPal, Stripe, and Square. Test tokens need to be used in the configuration file if attempting payments during developer mode

  • Disable error report file generation and directly log it to the console

Some errors can still generate an error-log file as FaxStore internally will create them regardless of the developer state for certain errors. Error files will generally not generate at all during extension development.


How to Enable Developer Mode

Enabling developer mode is simple. Add or edit the developerMode variable to the config file under the siteInformation section.

  1. Open the config.json file and locate developerMode if it exists. Otherwise create it under siteInformation

  2. To enable, set the value of it to true

  3. Save and reboot FaxStore

{
    "siteInformation": {
        "processPort": 3000,
        "domain": "http://localhost:3000",
        "ownerId": [],
        "developerMode": true // Edit this line to true or false.
    }
}

Setting developerMode to false will disable it.