---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Set or remove logpoints

# Set or remove logpoints {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Set breakpoints or conditional logpoints to log messages to the console at specific
lines, and remove logpoints when you are done debugging them.

## Before you begin

* Set the glide.debug.log_point system property to <kbd class="ph userinput">true</kbd>. See [Available system properties](https://www.servicenow.com/docs/access?context=r_AvailableSystemProperties&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US) for more information.
* Role required: admin or script_debugger
{#set-remove-logpts__ul_knl_2xk_v3b}

## About this task

Logpoints belong to the developer who sets them. Developers must set and remove their own logpoints.  
Note:  
At a specific line, you can set either a logpoint or breakpoint but not both.

## Procedure

1. Navigate to the server script to debug.  
   For example, navigate to AllSystem DefinitionBusiness Rules.
2. From the Syntax Editor, click the gutter next to a script line.

   | Action | Description |
   | Set a logpoint | Right-click a blank line and click Add logpoint to set a logpoint. |
   | Remove a logpoint | Right-click a logpoint and select Remove logpoint to remove it. |
   | Edit a logpoint | Right-click a logpoint and select Edit logpoint to edit it. |
   |-|-|

   {#set-remove-logpts__choicetable_grl_gly_ww}  
   Note:  
   The script entered for the logpoint must have the same format as that of the script in GSLog and GSInfo script includes.
3. From the Syntax Editor toolbar, click the Open Script Debugger icon ![Script debugger icon]().
4. On the Script Debugger window, trigger the script.  
   For example, create a record to trigger an insert business rule script.  
   Note:  
   You can also add logpoints in the Script Debugger window.
5. In the Script Debugger window, click Session Log to view the logpoints.
6. When debugging is complete, remove logpoints from the script.
{#set-remove-logpts__steps_q5m_mmy_ww}

*[\>]: and then


