Skip to main content
Version: 8.2

Debug the client code

Level: beginner

Creatio provides the isDebug front-end debugging mode that lets you retrieve detailed information about Creatio errors and track them in the client code.

Out of the box, browser minifies code. This means client scripts are assembled in the all-combined.js file. The file is assembled when the build is created and contains the entire functionality.

View the example that displays error information in the browser console when isDebug mode is disabled below.

If you enable isDebug mode, the assembly and minification of *.js files are disabled and client scripts are displayed as separate files.

note

Enabled isDebug mode affects Creatio performance negatively. For example, it increases the time it takes to open pages.

To enable isDebug mode:

  1. Check the current status of the isDebug mode. To do this, open the debugging tools.

    Besides the status of the isDebug mode, the console displays a code to enable or disable it.

  2. Enable the isDebug mode.

    Using browser console
    1. Open the Console tab in browser debugging tools.

    2. Run the following code at the browser console.

      Terrasoft.SysSettings.postPersonalSysSettingsValue("IsDebug", true);

    Using System settings section

    1. Open the System settings section. To do this, click System setupSystem settings.

    2. Open the Debug mode (isDebug code) system setting.

    3. Fill out the system setting properties.

      Property

      Property value

      Default value

      Select the checkbox

    4. Save the changes.

  3. Refresh the page to apply the changes.

As a result, the isDebug mode will be enabled. View the example that displays error information in the browser console when isDebug mode is enabled below.


See also

Front-end debugging tools overview