Debug Mode

Jscrambler is compatible with all the JavaScript frameworks and libraries but there are times where problems may arise and you need to ask for help debugging your protected code. This is where Jscrambler's Debug Mode comes in. If you're having any issues with your Jscrambler application, our Support Team may ask you to enable Debug Mode in your application which will instrument your code to output specific messages to help the debugging process.

Usage

Debug Mode can be enabled either in Jscrambler's Web Application or by passing a specific parameter to one of our Clients.

Web App

To enable Debug Mode, click the cogwheel on the top right corner and you should be able to see the Debug Mode option.

debug-mode checkbox

You should also see a message above the Protect Button saying that the Debug Mode is enabled.

protect button debug-mode

All protections made with the Debug Mode enabled will instrument the code.

CLI

Our CLI and our other packages such as webpack and gulp allow for specifying the debugMode option through the configuration:

{
  "keys": {
    "accessKey": "myAccessKey",
    "secretKey": "mySecretKey"
  },
  "applicationId": "myApplicationID",
  "params": [
    {
      "name": "stringSplitting"
    }
  ],
  "areSubscribersOrdered": false,
  "debugMode": true
}

If you're solely using our CLI, you can add a debugMode flag to the command:

jscrambler -c config.json -o dist/ --debugMode app.js