Copy link to clipboard
Copied
Hi,
I'm using the Extendscript debugger to run some one-off scripts in Premiere Pro. I don't want to create a panel for each one.
I've got a few library .jsx files that I want to run before the main .jsx file (and also enter into the debugger). I've tried to import the jsx using an import statement, but the Debugger doesn't appear to do anythign with these statements.
```
//#import "util.jsx
```
In a panel, the .jsx files loaded are controlled by the javascript entry point, so I can just load the `util.jsx` file. Without a panel, how do I load an external .jsx file in Extendscript itself for use with the VSCode ExtendScript Debugger?
It's a preprocessor directive. More info about it here: http://estk.aenhancers.com/extendscript-tools-features/preprocessor-directives.html?highlight=preprocessor
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It's a preprocessor directive. More info about it here: http://estk.aenhancers.com/extendscript-tools-features/preprocessor-directives.html?highlight=prepro...
Copy link to clipboard
Copied
Excellent Tomas. That works perfectly. For some reason I had the wrong pre-processor directive, but `//@include "json.jsx" works in the VSCode Extendscript debugger for non-panel files.