The Script Debugger API (SDAPI) is a RESTful service that enables you to interact with the script debugger engine. You use the SDAPI to enable the debugger, to set breakpoints, and to interact with halted script threads.
The following sections describe the steps you must perform to create a client application
All SDAPI requests must:
WebDAV_Manage_Customization
functional
permission.x-dw-client-id
and the value is a
string representing your client.https://your_host_name/s/-/dw/debugger/v1_0/
See Client Resource section for more information.
To enable the debugger, issue a POST request to create a Client resource. To disable the debugger, issue a DELETE request to remove the Client resource. Removing the Client resource also removes all breakpoints and resumes all halted script threads.
After creating the Client resource, you can create a breakpoint using a POST request. See Breakpoints to understand how to create, delete, and fetch breakpoints.
When you set a breakpoint in a script and the breakpoint is hit, the debugger engine halts the script thread so you can interact with it. To interact with the script thread, you can: