Debug the server code

Easy
PDF

To check the current status of the client debugging mode, open the browser console by pressing the F12 key or pressing Ctrl+Shift+I. Aside from the current status of the client debugging mode, the console will display the code to enable or disable debugging.

scr_debugmode_console.png

You can enable the client debugging mode using the following methods:

  • Execute the following code in the browser console
    Terrasoft.SysSettings.postPersonalSysSettingsValue("IsDebug", true)
    
  • Change the value of the [Debug mode] system setting.
    DebugMode_on1.gif

To apply the changes, refresh the page or hit F5.

Upon activating the client debugging mode, you will see the Debug indicator next to the site’s version number.

scr_debugmode_indicator.png

Note. Enabling the client debugging mode will affect site performance. For instance, it can increase the time needed for the pages to load.

The figures below show examples of errors displayed in the console with the ‘isDebug’ mode disabled and enabled.

Displaying an error (‘isDebug’ disabled)
scr_debugmode_off.png
Displaying an error (‘isDebug’ enabled)
scr_debugmode_on.png