Debugging a Script

This page goes over how to debug common problems you may run into.

Quick tips for logs:

Debugging Script files using UDT

Script files are executed in the same context as UXP plugins. Using UXP Developer Tool (UDT) v1.7.0, you can step through and debug a script.

You can debug script files in UDT by clicking on "Connected Apps", choosing InDesign, and then adding your script from there:

step 1 of loading an InDesign script into UDT

step 2 of loading an InDesign script into UDT

Once you've loaded a script in, you can debug with a breakpoint activated. From here you set breakpoints or Step Into the script files.