---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Script Debugger step-through and console controls

# Script Debugger step-through and console controls {#ariaid-title1}

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

After the Script Debugger pauses a script, use the step-through controls
to move between script lines and move between scripts in the call stack. Use the Console
controls to expand console, collapse console, clear console, and rerun expressions.
{#step-through-controls__table_azz_4lh_xw__entry__3}

| Control | Icon | Description |
|:-|:-:|:-|
| Stop debugging SHIFT+F2 | ![Pause debugging - SHIFT+F2 icon]() | Stops any current debugging session, and disables the Script Debugger for the current user. The Script Debugger does not pause on breakpoints for the current user until it is restarted. |
| Start debugger - F2 | ![Start debugger - F2 icon]() | Enables the Script Debugger for the current user. The Script Debugger pauses on breakpoints. |
| Resume script execution - F9 | ![Resume script execution - F9 icon]() | Advances from the current breakpoint to the next breakpoint. If there are no other breakpoints, the script runs to completion. |
| Step over next function call - OPTION+F9 | ![Step over next function - OPTION+F9 icon]() | Advances to the next evaluated line of script based on current conditions. The Script Debugger skips any lines of code that do not need to run because their conditions are not met. For example, when the condition of an `if` statement is not true, the debugger skips the code block for the condition. |
| Step into next function call - OPTION+F10 | ![Step into next function call - OPTION+F10 icon]() | When the Script Debugger pauses on a method call, this control allows the user to advance to the first line of executed code within the method call. Stepping into a method updates the current position within the call stack. If the user does not have read access to the method call, then this control acts like step over instead. |
| Step out of current function - OPTION+F11 | ![Step out of current function - OPTION+F11 icon]() | When the Script Debugger pauses within a method call, this control allows the user to exit the current method call and return to the calling script from the call stack. If the user is not within a method call, then this control acts like step over instead. |
[Table 1. Step-through controls]

{#step-through-controls__table_azz_4lh_xw} {#step-through-controls__table_irw_2cp_2mb__entry__3}

| Control | Icon | Description |
|-|-|-|
| Open Console | ![Expand console]() | Expands the Console. |
| Close Console | ![Collapse Console]() | Collapses the Console. |
| Clear expressions | ![Clear expressions in Console]() | Clears all the expressions in the Console. |
| Re-execute expression | ![Re-execute an expression in Console]() | Re-executes the expression which is already executed. |
[Table 2. Console controls]

{#step-through-controls__table_irw_2cp_2mb}
**Related tasks**   

* [Set or remove breakpoints](https://servicenow-prod.fluidtopics.net/Q6UxiDLtJ9KConZSpCNG6g "Set breakpoints or conditional breakpoints to pause scripts at specific lines, and remove breakpoints when you are done debugging them.")

