Script debugger

broken image
broken image

If an error is thrown, the rest of the current script is skipped and execution continues with the next script. If the selector of a standard script or post pagination script has no matches in the current resource ( Master Page or section) the script will be skipped. The left side of the window displays all enabled scripts that apply to the current context and the name of the script that is displayed in the source editor at the top right and the current line number. Meanwhile, the Workspace will display the partially merged document. You can then add breakpoints and/or step through the code. The Debugger simulates an output run with only the current record and appears as soon as the merge engine processes the selected script, or the first script if no script was selected. The Script Debugger will pause and accept input as soon as it processes the selected script. Right-click an enabled script in the Scripts panel and choose Debug from the contextual menu. The Script Debugger will pause and accept input as soon as it processes the first script. There are two ways to start the Script Debugger:Ĭlick the Debug Scripts button in the toolbar of the Scripts pane.

The Script Debugger allows you to test personalization scripts by setting breakpoints and stepping through the scripts.

broken image