Debugging
While writing complex logic, you might be in the cycle of testing/debugging your code. Although UDT -> Debug lets you set breakpoints and debug your code using Chrome Debug Tool, these couple of techniques may also prove handy.
System requirements
Please make sure your local environment uses the following application versions before proceeding.
- Premiere Pro v25.2 or higher
- UDT v2.1.0 or higher
- Manifest version v5 or higher
Console logs
JavaScript
Copied to your clipboardasync function foo() {console.log("foo"); // writes "foo" to the UXP Developer Tool console.console.error("foo error"); // does the same thing, but the text is shown in red so errors are more easily seen.}
Alerts
Use alert(), prompt() and confirm()in UXP