Set or remove logpoints

task australia Updated Sep 10, 2026 1 min read set-remove-logpts.md
Raw file servicenow.com

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 true. See Available system properties for more information.
  • Role required: admin or script_debugger

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 All > System Definition > Business 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.

    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 [Omitted image "script-debugger.png"] Alt text: 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.

Parent Topic:Script Debugger and Session Log

Search documentation
Search document titles and file paths on the australia branch