Debugging

Handling errors in Clerk.js.

You can use the clerk debugger to inspect what happens in clerk.js v2 if anything should go wrong.
The debugger exposes a visual interface that lets you log all clerk interactions and inspect the parameters in the different API calls.

Configuring the debugger

The easiest way to enable the debugger is through the URL Configuration method. This could look like *www.yourwebsite.com/**#clerkjs:debug.ui=on&debug.level=all&debug.enable=true***

The debugger has 4 different parameters that can be set using either the URL configuration or the debuggers interface.

Configuration

Function

Type

level

Defines the log level. Can be either log warn or error. By default the level is 'warn'.

string

collect

Defines if the logger should use the browsers storage, or use temporary storage to save log messages. Default is true.

bool

enable

Enables clerk debug messages to the browsers console. Default is true

bool